Function at 0x10019660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10114f60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x74]
xor esi, esi
cmp byte [ebp + 0x18], 0
jne 0x10019c71
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x10019c71
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10019c71
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
call fcn.10001890
add esp, 8
cmp eax, 0xbb8
mov dword [esp + 0x20], eax
jle 0x100196e2
mov dword [esp + 0x20], 0xbb8
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], esi
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x10019700
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, ebp
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x10019710
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x10019718
cmp ebx, ebp
je 0x1001971e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x10019858
test ebx, ebx
jne 0x10019730
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 8]
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x1001973d
call edi
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test al, al
je 0x1001980e
cmp esi, dword [ebx + 8]
jb 0x1001975c
call edi
cmp esi, dword [ebx + 8]
jb 0x1001975c
call edi
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x18], 0
add dword [ebp + 0x10], eax
lea ebp, [esi + 0x14]
cmp esi, dword [ebx + 8]
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x1001977d
call edi
cmp dword [ebp], 0
je 0x100197bd
cmp esi, dword [ebx + 8]
jb 0x1001978a
call edi
cmp esi, dword [ebx + 8]
mov edi, dword [ebp]
jb 0x10019798
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x10]
or ecx, dword [edi + 0x14]
je 0x100197aa
mov eax, dword [esi + 8]
cdq
add dword [edi + 8], eax
adc dword [edi + 0xc], edx
mov eax, dword [esp + 0x18]
add eax, 1
add ebp, 4
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x10019770
mov edx, dword [esp + 0x74]
mov ebp, dword [edx + 8]
lea edi, [esi + 0x28]
cmp edi, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
je 0x100197e6
mov ebx, esi
sub ebx, edi
lea esi, [ebx + edi]
call fcn.1001a6e0
add edi, 0x28
cmp edi, ebp
jne 0x100197d7
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov edi, dword [ebp + 8]
push eax
lea eax, [edi - 0x28]
call fcn.1001a630
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esp, 4
add dword [ebp + 8], 0xffffffd8
jmp 0x10019702
xor ebp, ebp
lea edi, [esi + 0x14]
cmp esi, dword [ebx + 8]
jb 0x1001981e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi], 0
je 0x10019841
cmp esi, dword [ebx + 8]
jb 0x1001982e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi]
add ebp, 1
add edi, 4
cmp ebp, 5
mov dword [ecx], 0
jl 0x10019813
cmp esi, dword [ebx + 8]
jb 0x1001984c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x74]
add esi, 0x28
jmp 0x10019702
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10019866
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
mov dword [esp + 0x30], esi
jbe 0x10019878
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x10019953
lea edx, [ebx + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
cmp ebx, dword [ebp + 8]
jb 0x1001989a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x1001993c
cmp ebx, dword [ebp + 8]
jb 0x100198b2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp dword [esi], 0
mov dword [esp + 0x28], esi
jne 0x10019913
mov edi, dword [esp + 0x54]
test edi, edi
mov edx, dword [esp + 0x58]
je 0x100198e8
mov ecx, dword [esp + 0x5c]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x100198e8
mov dword [edx], esi
add edx, 4
mov dword [esp + 0x58], edx
jmp 0x10019913
cmp edi, edx
mov dword [esp + 0x24], edx
jbe 0x100198f6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
push ecx
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
call fcn.10019ed0
cmp ebx, dword [ebp + 8]
jb 0x1001991e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
add dword [esi], ecx
add dword [esp + 0x18], 4
add eax, 1
cmp eax, 5
mov dword [esp + 0x1c], eax
jl 0x1001988f
cmp ebx, dword [ebp + 8]
jb 0x10019947
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x30]
add ebx, 0x28
jmp 0x10019878
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
mov esi, eax
jbe 0x10019969
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
cmp eax, ebx
jbe 0x10019977
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
jmp 0x10019980
cmp esi, ebx
je 0x100199aa
cmp esi, dword [esp + 0x58]
jb 0x10019990
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
push edi
push edx
call fcn.10019420
cmp esi, dword [esp + 0x58]
jb 0x100199a5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 4
jmp 0x10019980
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x6c], 1
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x100199cb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x74]
mov edi, ebx
mov ebp, esi
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x100199e1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
je 0x100199e9
cmp edi, ebx
je 0x100199ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x10019b1e
test edi, edi
jne 0x10019a01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 8]
jb 0x10019a0c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, ebp
call fcn.1001a810
cmp ebp, dword [edi + 8]
mov esi, eax
jb 0x10019a2b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 8]
jb 0x10019a2b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x10019a6b
cmp ebp, dword [edi + 8]
jb 0x10019a3e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x10], 0
jg 0x10019a55
cmp ebp, dword [edi + 8]
jb 0x10019a4f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 8], 0
jg 0x10019a6b
cmp ebp, dword [edi + 8]
jb 0x10019a60
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 0x28
sub dword [ebx + 0x10], esi
jmp 0x100199d3
cmp ebp, dword [edi + 8]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x10019a7f
call ebx
cmp ebp, dword [edi + 8]
jb 0x10019a7f
call ebx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
add esi, ecx
cmp ebp, dword [edi + 8]
mov dword [esp + 0x30], esi
jb 0x10019a92
call ebx
push ebp
lea esi, [esp + 0x44]
call fcn.10019cd0
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 8]
mov dword [esp + 0x28], edi
lea edi, [ebp + 0x28]
cmp edi, ebx
mov dword [esp + 0x2c], ebp
je 0x10019ac3
sub ebp, edi
lea esi, [edi + ebp]
call fcn.1001a6e0
add edi, 0x28
cmp edi, ebx
jne 0x10019ab4
mov eax, dword [esp + 0x74]
mov edi, dword [eax + 8]
lea esi, [edi - 0x28]
cmp esi, edi
je 0x10019b00
mov eax, dword [esi]
test eax, eax
je 0x10019af9
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10019af9
test eax, eax
je 0x10019af9
add eax, 0xfffffffc
je 0x10019af9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 1
call eax
add esi, 0x28
cmp esi, edi
jne 0x10019ad1
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x30]
add dword [eax + 8], 0xffffffd8
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ebx, eax
sub dword [ebx + 0x10], esi
jmp 0x100199d3
mov esi, dword [esp + 0x44]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
cmp esi, ebx
je 0x10019c09
mov edx, ecx
sub edx, esi
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10019c09
cmp esi, ecx
mov edi, ecx
jbe 0x10019b61
call ebp
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x40]
mov ebx, eax
lea eax, [edi - 0x28]
cmp eax, ecx
mov dword [esp + 0x3c], edi
ja 0x10019b76
cmp eax, esi
jae 0x10019b78
call ebp
lea esi, [edi - 0x28]
cmp esi, dword [ebx + 8]
jb 0x10019b82
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x14]
push eax
call edx
mov esi, dword [esp + 0x44]
test esi, esi
je 0x10019b28
mov ecx, dword [esp + 0x48]
mov edx, ecx
sub edx, esi
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10019b2c
lea edi, [ecx - 0x28]
cmp edi, ecx
mov ebx, ecx
je 0x10019bfd
mov eax, dword [edi]
test eax, eax
je 0x10019bee
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10019bee
test eax, eax
je 0x10019bee
add eax, 0xfffffffc
je 0x10019bee
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 1
call eax
add edi, 0x28
cmp edi, ebx
jne 0x10019bc6
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
sub ecx, 0x28
mov dword [esp + 0x48], ecx
jmp 0x10019b2c
cmp esi, ebx
mov byte [esp + 0x6c], 0
je 0x10019c54
cmp esi, ecx
mov edi, ecx
je 0x10019c4b
mov eax, dword [esi]
cmp eax, ebx
je 0x10019c40
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10019c40
cmp eax, ebx
je 0x10019c40
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x10019c40
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
add esi, 0x28
cmp esi, edi
jne 0x10019c18
mov esi, dword [esp + 0x44]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x10019c71
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4