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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d9068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
movsx eax, word [eax + 0xe]
push edi
mov dword [esp + 0x10], esi
lea ecx, [eax + eax*4]
mov dword [esp + 0x38], 0x5f0828
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0x24]
lea ecx, [eax + edx*8]
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov edi, dword [ebp + 0x18]
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c], 1
mov edx, dword [edi + 8]
push edx
call fcn.0046d900
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x50]
mov ebx, eax
dec eax
test ebx, ebx
je 0x539583
inc eax
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
dec eax
jne 0x539576
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.005279e0
lea ecx, [esp + 0x4c]
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.005279e0
lea ecx, [esp + 0x60]
call fcn.004b6ca0
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x54]
mov dword [esp + 0x68], ecx
fld qword [eax + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x6c], edx
fst qword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x9c], 2
call fcn.00536ad0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
fstp qword [esp + 0x60]
push edi
push eax
push ebx
push ecx
call fcn.00527880
fmul qword [esi + 0x70]
add esp, 0x10
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x60]
push edx
push eax
fstp qword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0052f8a0
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
fadd qword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x60], edx
fstp qword [esp + 0x14]
jle 0x539675
mov ecx, dword [esp + 0x3c]
mov edx, eax
add ecx, 0x48
fld qword [ecx]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 1
jne 0x53966f
fld qword [ecx]
fstp qword [esp + 0x60]
add ecx, 0x60
dec edx
jne 0x53965c
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x70], edx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, esi
call fcn.0052f8a0
fadd qword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
test eax, eax
fstp qword [esp + 0x14]
fld qword [esp + 0x68]
mov dword [esp + 0x74], ecx
fst qword [esp + 0x2c]
jle 0x539736
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 0x48]
mov edx, eax
fld qword [ecx + 8]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x5396ff
fstp st(0)
fld qword [ecx + 8]
fld qword [ecx]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
jne 0x539712
fld qword [ecx]
fstp qword [esp + 0x70]
add ecx, 0x60
dec edx
jne 0x5396ec
fstp qword [esp + 0x2c]
mov ecx, dword [ebp + 0x10]
fld qword [ecx + 0x48]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x53973a
fld qword [ecx + 0x48]
fstp qword [esp + 0x24]
jmp 0x53974a
fstp st(0)
jmp 0x53971c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov esi, dword [ebp + 0x10]
lea ecx, [esi + 0x38]
call fcn.004b7060
fld qword [esi + 0x48]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x60]
fsub qword [esi]
fmulp st(1)
fstp qword [esp + 0x1c]
call fcn.004b7060
fld qword [esp + 0x24]
fsub qword [esi]
mov esi, dword [ebp + 0x24]
fmulp st(1)
fadd qword [esp + 0x1c]
fdivr qword [esp + 0x14]
fcom qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x5398e6
mov edx, dword [esp + 0x40]
fstp qword [ebp + 0x1c]
lea eax, [edx + 2]
cmp eax, 0xffffffff
je 0x53979f
mov dword [esi + 0x10], eax
mov edi, dword [esi + 4]
test edi, edi
je 0x5397df
mov eax, dword [esi + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x5397cc
inc eax
mov dword [esp + 0x14], eax
push 0
mov ecx, edi
call fcn.00546850
mov eax, dword [esp + 0x14]
add edi, 0x60
dec eax
mov dword [esp + 0x14], eax
jne 0x5397b5
mov eax, dword [esi + 4]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ecx
cmp word [eax], cx
jne 0x539829
fld qword [eax + 0x298]
fcomp qword [eax + 0x2b0]
fnstsw ax
test ah, 0x40
je 0x539829
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 4]
fld qword [edx + 8]
fcomp qword [eax]
fnstsw ax
test ah, 1
je 0x539829
push esi
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00536b50
jmp 0x539840
push 0xffffffffffffffff
push 1
mov ecx, esi
call fcn.005442f0
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.00530160
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.005442f0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
shl ecx, 5
push ebx
add ecx, edx
call fcn.00530160
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x40]
add ecx, edi
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.005442f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edi, [edi + edi*2]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 4]
shl edi, 5
add edi, edx
test eax, eax
je 0x5398b6
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
add ecx, 0x60
mov dword [esp + 0x14], ecx
mov ecx, edi
push eax
add edi, 0x60
call fcn.00530160
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x539893
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
fld qword [eax + 0x18]
fsub qword [esp + 0x2c]
fld qword [0x5e46c8]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x5398ea
fstp st(0)
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x40140000
jmp 0x5398ee
fstp st(0)
jmp 0x5398b9
fstp qword [esp + 0x24]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x60]
push edx
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [ebx + 0x38]
push edx
call fcn.004b7040
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00536e40
test al, al
je 0x539cf5
mov ecx, dword [esp + 0x40]
cmp ecx, 0xffffffff
je 0x539931
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x53997b
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x53996a
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
push 0
call fcn.00546850
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0x60
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x539945
mov eax, dword [esp + 0x3c]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x3c], 0
mov edx, dword [edi + 8]
xor eax, eax
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
call fcn.0046d900
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edx, ecx
dec ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
test edx, edx
je 0x5399c7
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add ecx, 4
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add eax, 4
dec edx
mov dword [esp + 0x1c], edx
jne 0x5399b2
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.005279e0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, ebx
call fcn.005279e0
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], ecx
movsx ecx, word [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
sub esp, 8
sub esp, 8
lea ecx, [ebx + 0x38]
fmul qword [edx + 0x298]
fsub qword [ebx + 0x40]
fstp qword [esp + 8]
fld qword [esp + 0x70]
fsub qword [ebx + 0x48]
fstp qword [esp]
call fcn.004b6fc0
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebx + 0x48]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00536ad0
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
fstp qword [esp + 0x60]
push edi
push edx
call fcn.005277b0
mov eax, dword [esp + 0xc]
push edi
fstp qword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.005277b0
fadd qword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
fmul qword [ecx + 0x70]
fstp qword [esp + 0x14]
fld qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x539b29
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0052f8a0
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
fadd qword [esp + 0x14]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x40]
test edx, edx
mov dword [esp + 0x64], eax
fstp qword [esp + 0x14]
jle 0x539b17
mov ecx, dword [esp + 0x3c]
add ecx, 0x48
fld qword [ecx]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 1
jne 0x539b11
fld qword [ecx]
fstp qword [esp + 0x60]
add ecx, 0x60
dec edx
jne 0x539afe
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
jmp 0x539b4d
mov ecx, dword [ebp + 8]
fld qword [ecx]
fadd qword [0x5e27e0]
fst qword [esp + 0x70]
fld qword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x539b4b
fstp qword [esp + 0x24]
jmp 0x539b4d
fstp st(0)
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x38]
movsx edx, word [edi + 0x10]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x4c]
fild dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
fmul qword [eax + 0x298]
lea eax, [esp + 0x68]
push eax
fadd qword [edi + 0x40]
fstp qword [esp + 0x74]
call fcn.0052f8a0
fadd qword [esp + 0x14]
mov eax, dword [esp + 0x40]
test eax, eax
fstp qword [esp + 0x14]
fld qword [esp + 0x60]
fst qword [esp + 0x70]
jle 0x539bc1
mov ecx, dword [esp + 0x3c]
mov edx, eax
add ecx, 0x48
fld qword [ecx]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x539bbb
fstp st(0)
fld qword [ecx]
fst qword [esp + 0x70]
add ecx, 0x60
dec edx
jne 0x539ba6
fld qword [edi + 0x48]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x539bd2
fstp st(0)
fld qword [edi + 0x48]
fstp qword [esp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.004b7060
mov eax, dword [ebp + 8]
fld qword [esp + 0x2c]
fsub qword [eax]
fmulp st(1)
fld qword [esp + 0x68]
fsub qword [eax + 8]
fld qword [esp + 0x24]
fsub qword [eax]
fmulp st(1)
faddp st(1)
fdivr qword [esp + 0x14]
fcom qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x539cf3
movsx edx, word [edi + 0x10]
fstp qword [ebp + 0x1c]
mov eax, dword [esp + 0x40]
lea eax, [edx + eax + 1]
cmp eax, 0xffffffff
je 0x539c24
mov dword [esi + 0x10], eax
mov edi, dword [esi + 4]
test edi, edi
je 0x539c64
mov eax, dword [esi + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x539c51
inc eax
mov dword [esp + 0x1c], eax
push 0
mov ecx, edi
call fcn.00546850
mov eax, dword [esp + 0x1c]
add edi, 0x60
dec eax
mov dword [esp + 0x1c], eax
jne 0x539c3a
mov eax, dword [esi + 4]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esi + 4], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
xor eax, eax
push esi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.00536b50
mov edi, dword [esi + 8]
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.005442f0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
shl ecx, 5
push ebx
add ecx, edx
call fcn.00530160
mov eax, dword [esi + 8]
push 0xffffffffffffffff
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
shl edx, 5
mov word [edx + eax - 0x54], 0
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x44]
add ecx, edi
push ecx
mov ecx, esi
call fcn.005442f0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
lea edi, [edi + edi*2]
shl edi, 5
add edi, edx
test eax, eax
je 0x539cf5
lea esi, [eax]
mov eax, ebx
mov ecx, edi
push eax
add ebx, 0x60
add edi, 0x60
call fcn.00530160
dec esi
jne 0x539cde
jmp 0x539cf5
fstp st(0)
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 1
call fcn.0042bd50
mov dword [esp + 0x4c], 0x5e27fc
mov eax, dword [esp + 0x50]
mov byte [esp + 0x88], 3
test eax, eax
je 0x539d27
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], 0x5e262c
mov dword [esp + 0x38], 0x5f0828
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], 4
test eax, eax
je 0x539d71
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x539d68
lea esi, [eax + 0x38]
lea edi, [ecx]
mov ecx, esi
call fcn.0042bd50
add esi, 0x60
dec edi
jne 0x539d57
mov eax, dword [esp + 0x3c]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x80]
pop edi
fld qword [ebp + 0x1c]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20