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

Disassembly:
push 0xffffffffffffffff
push 0x5715a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x70]
mov ebp, ecx
mov ecx, dword [esi]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], edi
cmp ecx, edx
je 0x4159e6
mov eax, edx
cmp edx, edx
je 0x4159e3
mov ebx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0xc], ebx
add eax, 0x10
add ecx, 0x10
cmp eax, edx
jne 0x4159c3
mov dword [esi + 4], ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 4
cmp eax, 2
jb 0x415a37
cmp byte [esp + 0x74], 0
jne 0x415c10
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push eax
push ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x64], ebx
call fcn.00411670
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, dword [esp + 0x20]
jne 0x415a3f
cmp eax, ebx
je 0x415a37
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
jmp 0x415c62
mov eax, dword [ebp + 0x90]
mov eax, dword [eax]
mov ebx, dword [eax]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 4]
shl edi, 4
add edi, dword [ebp + 0x60]
cmp edi, eax
jae 0x415a7b
mov ecx, dword [esi]
cmp ecx, edi
ja 0x415a7b
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x415a74
push 1
mov ecx, esi
call fcn.00407560
and edi, 0xfffffff0
add edi, dword [esi]
jmp 0x415a89
cmp eax, dword [esi + 8]
jne 0x415a89
push 1
mov ecx, esi
call fcn.00407560
mov eax, dword [esi + 4]
test eax, eax
je 0x415aa6
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
add dword [esi + 4], 0x10
mov ecx, dword [ebp + 0x80]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x70]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
dec eax
cmp eax, edx
jge 0x415acb
mov eax, dword [ecx + 4]
lea eax, [eax + edx - 1]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x415a4d
shl ebx, 4
add ebx, dword [ebp + 0x60]
mov ecx, esi
push ebx
call fcn.00408100
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0x1c]
add edi, 8
mov byte [esp + 0x5c], 1
cmp edi, dword [esp + 0x20]
je 0x415bc6
jmp 0x415b10
cmp ebx, ebp
je 0x415b1a
mov ebp, ebx
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add ecx, eax
shl ecx, 4
add ecx, edx
shl eax, 4
add eax, edx
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
push ebp
lea ecx, [esp + 0x3c]
call fcn.00408a00
fld qword [esp + 0x68]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push 1
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call fcn.004130f0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x30]
je 0x415be0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00415750
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
cmp ebx, ebp
je 0x415bf8
fld qword [0x57b8c8]
lea edx, [esp + 0x40]
fst qword [esp + 0x40]
push edx
mov ecx, esi
fstp qword [esp + 0x4c]
call fcn.00408100
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
push ecx
push ebp
push ebx
push eax
mov ecx, esi
call fcn.00408a00
add edi, 8
cmp edi, dword [esp + 0x20]
jne 0x415b10
test ebx, ebx
je 0x415bc6
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415c60
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x415c60
test eax, eax
je 0x415bed
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
jmp 0x415a2c
test ebx, ebx
je 0x415bed
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jmp 0x415a2c
mov ecx, esi
call fcn.00408200
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
mov eax, dword [esi + 4]
push edx
push ecx
push edi
push eax
mov ecx, esi
call fcn.00408a00
fld qword [esp + 0x68]
push esi
push 0
sub esp, 8
mov ecx, ebp
fstp qword [esp]
call fcn.004130f0
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x415a37
push esi
mov ecx, ebp
call fcn.00415750
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
je 0x415a37
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00551a8e
add esp, 0x4c
ret 0x18