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

Disassembly:
push 0xffffffffffffffff
push 0x571190
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
mov edi, ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0xd0]
mov dword [esp + 0x14], eax
call fcn.00541ad0
cmp eax, 1
jl 0x4138d0
mov edx, dword [edi + 0x90]
mov eax, dword [edx + ebp*4]
mov eax, dword [eax + 0x40]
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x220]
lea ecx, [edi + 0x1d8]
add edx, edx
mov esi, dword [eax + edx*8]
mov ebx, dword [eax + edx*8 + 4]
xor eax, eax
lea edx, [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x50]
push eax
push esi
call fcn.004300d0
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x60]
push edx
push ebx
lea ecx, [edi + 0x1d8]
call fcn.004300d0
fld qword [esp + 0x5c]
mov eax, dword [edi + 0x90]
fst qword [esp + 0x3c]
mov eax, dword [eax + ebp*4]
fld qword [esp + 0x64]
fxch st(1)
fsub qword [eax + 0x18]
fxch st(1)
fsub qword [eax + 0x20]
fld st(1)
fmulp st(2)
fldz
fadd st(2), st(0)
fld st(1)
fmulp st(2)
fxch st(1)
faddp st(2)
fld qword [esp + 0x4c]
fst qword [esp + 0x3c]
fld qword [esp + 0x54]
fxch st(1)
fsub qword [eax + 0x18]
fxch st(1)
fsub qword [eax + 0x20]
fld st(1)
fmulp st(2)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x413680
mov esi, ebx
mov ecx, dword [edi + 0xd0]
push esi
call fcn.00541370
xor ebx, ebx
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x4138d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
push ecx
push edx
mov ecx, edi
call fcn.00403370
cmp eax, ebx
jl 0x4138d0
mov ecx, dword [edi + 0xd0]
push eax
call fcn.00541370
mov ebp, eax
cmp ebp, ebx
je 0x4138d0
mov ecx, dword [edi + 0xd0]
call fcn.00541ad0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0041a950
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0xd0]
push edx
push ebp
push eax
mov dword [esp + 0x9c], ebx
call fcn.005422b0
cmp eax, ebx
jne 0x4138c7
cmp dword [esp + 0x28], 1
jl 0x4138c7
lea ecx, [esp + 0x74]
push ecx
xor eax, eax
lea edx, [esp + 0x70]
push edx
push esi
lea ecx, [edi + 0x1d8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.004300d0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, edi
call fcn.00409e00
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x88], 1
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x28], ebx
jle 0x4138a6
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x1d8]
mov dword [esp + 0x30], eax
call fcn.004015d0
mov ecx, dword [esp + 0x98]
add esp, 4
push ecx
mov ebp, eax
push ebp
mov ecx, edi
call fcn.004016a0
test al, al
jne 0x413893
push ebp
lea ecx, [edi + 0x1d8]
call fcn.004301b0
test al, al
jne 0x41387c
mov eax, dword [edi + 0x220]
lea edx, [ebp + ebp*2]
add edx, edx
lea ecx, [esp + 0x18]
cmp dword [eax + edx*8], esi
jne 0x413838
call fcn.00408200
fld qword [0x57b920]
push 1
push 0
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ecx, edi
call fcn.00411640
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
je 0x41387c
lea esp, [esp]
mov edx, dword [esp + 0x30]
push edx
push esi
mov ecx, edi
call fcn.00409e00
add esi, 0x10
cmp esi, dword [esp + 0x1c]
jne 0x413820
jmp 0x41387c
call fcn.00408200
fld qword [0x57b920]
push 0
push 1
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x28]
push eax
push ebp
mov ecx, edi
call fcn.00411640
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
je 0x41387c
mov ecx, dword [esp + 0x30]
push ecx
lea esi, [eax - 0x10]
push esi
mov ecx, edi
call fcn.00409e00
mov eax, esi
cmp eax, dword [esp + 0x18]
jne 0x413864
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jl 0x413788
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4138a4
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x4138c3
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x4138d3
lea ecx, [esp + 0x3c]
call fcn.00405a30
or eax, 0xffffffff
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00551a8e
add esp, 0x78
ret 0x14