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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d9028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, ecx
push esi
movsx eax, word [ebx + 0xe]
mov dword [esp + 8], edx
xor esi, esi
lea ecx, [eax + eax*4]
push edi
mov dword [esp + 0x38], 0x5f0828
mov dword [esp + 0x3c], esi
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
lea eax, [eax + ecx*2]
mov ecx, dword [edx + 0x24]
lea edx, [ecx + eax*8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov edi, dword [ebp + 0x18]
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c], 1
mov eax, dword [edi + 8]
push eax
call fcn.0046d900
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x50]
mov edi, eax
dec eax
test edi, edi
je 0x538cf3
inc eax
mov edi, dword [edx]
add edx, 4
mov dword [ecx], edi
add ecx, 4
dec eax
jne 0x538ce6
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push edi
mov ecx, ebx
call fcn.005279e0
lea edx, [esp + 0x4c]
push edx
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edi
call fcn.005279e0
lea ecx, [esp + 0x60]
call fcn.004b6ca0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
push ebx
mov byte [esp + 0x98], 2
call fcn.00527880
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x54]
mov dword [esp + 0x88], edx
fmul qword [ecx + 0x70]
mov edx, dword [ebx + 0x50]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x78], edx
mov edx, dword [edi + 0x48]
mov dword [esp + 0x7c], eax
fstp qword [esp + 0x24]
fld qword [ebx + 0x48]
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x70], edx
fst qword [esp + 0x80]
mov dword [esp + 0x74], eax
add esp, 0x10
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x538da8
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
push edx
lea edx, [esp + 0x64]
push eax
push edx
call fcn.0052f8a0
fadd qword [esp + 0x14]
mov ecx, dword [esp + 0xc]
fstp qword [esp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x50]
mov dword [esp + 0x68], edx
fld qword [eax + 0x18]
mov eax, dword [edi + 0x54]
fst qword [esp + 0x1c]
fstp qword [esp + 0x78]
fld qword [edi + 0x48]
fld qword [ebx + 0x48]
fcompp
mov dword [esp + 0x6c], eax
fnstsw ax
test ah, 1
je 0x538dd8
fld qword [edi + 0x48]
jmp 0x538ddb
fld qword [ebx + 0x48]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
fstp qword [esp + 0x7c]
push eax
push edx
call fcn.00536ad0
fstp qword [esp + 0x60]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.0052f8a0
fadd qword [esp + 0x14]
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [esp + 0x74], ecx
fstp qword [esp + 0x14]
fld qword [esp + 0x68]
fst qword [esp + 0x2c]
jle 0x538e8e
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 0x538e5a
fstp st(0)
fld qword [ecx + 8]
fld qword [ecx]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
jne 0x538e6d
fld qword [ecx]
fstp qword [esp + 0x70]
add ecx, 0x60
dec edx
jne 0x538e47
fstp qword [esp + 0x2c]
fld qword [ebx + 0x48]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x538e92
fld qword [ebx + 0x48]
fstp qword [esp + 0x24]
jmp 0x538ea2
fstp st(0)
jmp 0x538e77
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x60]
call fcn.004b7060
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x24]
fld qword [esp + 0x24]
fsub qword [eax]
fmulp st(1)
fld qword [ebx + 0x48]
fsub qword [eax]
fld qword [edi + 0x50]
fsub qword [ebx + 0x40]
fmulp st(1)
faddp st(1)
fdivr qword [esp + 0x14]
fcom qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x53903f
mov edx, dword [esp + 0x40]
fstp qword [ebp + 0x1c]
lea eax, [edx + 1]
cmp eax, 0xffffffff
je 0x538eec
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x538f3a
mov eax, dword [esi + 8]
mov dword [esp + 0x14], ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x538f27
inc eax
mov dword [esp + 0x1c], eax
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 0x538f06
mov eax, dword [esi + 4]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ecx
cmp word [eax], cx
jne 0x538f81
fld qword [eax + 0x298]
fcomp qword [eax + 0x2b0]
fnstsw ax
test ah, 0x40
je 0x538f81
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 0x538f81
push esi
push ecx
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00536b50
jmp 0x538f95
push 0xffffffffffffffff
push 1
mov ecx, esi
call fcn.005442f0
mov ecx, dword [esi + 4]
push ebx
call fcn.00530160
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
inc eax
push eax
mov ecx, esi
call fcn.005442f0
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push edi
lea ecx, [eax + eax*2]
shl ecx, 5
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 ecx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
lea edi, [edi + edi*2]
shl edi, 5
add edi, ecx
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x53900f
mov dword [esp + 0x1c], ecx
jmp 0x538ff0
mov eax, dword [esp + 0x14]
mov edx, eax
add eax, 0x60
mov ecx, edi
push edx
mov dword [esp + 0x18], eax
add edi, 0x60
call fcn.00530160
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x538fec
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
fld qword [edx + 0x18]
fsub qword [esp + 0x2c]
fld qword [0x5e46c8]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x539043
fstp st(0)
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x40140000
jmp 0x539047
fstp st(0)
jmp 0x539012
fstp qword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x60]
push eax
push edx
lea ecx, [edi + 0x38]
push ebx
call fcn.004b7040
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00536e40
test al, al
je 0x53942c
mov ecx, dword [esp + 0x40]
cmp ecx, 0xffffffff
je 0x539087
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5390d1
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x5390c0
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 0x53909b
mov eax, dword [esp + 0x3c]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x3c], 0
mov edx, dword [ebp + 0x18]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov eax, dword [edx + 8]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x54]
call fcn.0046d900
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], edx
mov edx, ecx
dec ecx
test edx, edx
je 0x539123
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 0x53910e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, ebx
call fcn.005279e0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, edi
call fcn.005279e0
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x30], edx
call fcn.005277b0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
movsx eax, word [ebx + 0x10]
fmul qword [edx + 0x70]
mov dword [esp + 0x1c], eax
sub esp, 8
sub esp, 8
fstp qword [esp + 0x24]
fild dword [esp + 0x2c]
fmul qword [ecx + 0x298]
lea ecx, [edi + 0x38]
fsub qword [edi + 0x40]
fstp qword [esp + 8]
fld qword [esp + 0x70]
fsub qword [edi + 0x48]
fstp qword [esp]
call fcn.004b6fc0
movsx ecx, word [ebx + 0x10]
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x54]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x78], edx
fild dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
fmul qword [edx + 0x298]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
fadd qword [ebx + 0x40]
fstp qword [esp + 0x68]
fld qword [ebx + 0x48]
fst qword [esp + 0x70]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x539210
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0052f8a0
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x68], eax
fld qword [edx + 0x18]
mov dword [esp + 0x6c], ecx
fst qword [esp + 0x1c]
fstp qword [esp + 0x78]
fld qword [edi + 0x48]
fld qword [ebx + 0x48]
fcompp
fnstsw ax
test ah, 1
je 0x539240
fld qword [edi + 0x48]
jmp 0x539243
fld qword [ebx + 0x48]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x18]
push edx
fstp qword [esp + 0x80]
push eax
call fcn.00536ad0
fst qword [esp + 0x60]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x5392cd
lea ecx, [esp + 0x38]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push edx
push eax
call fcn.0052f8a0
fadd qword [esp + 0x14]
mov edx, dword [esp + 0x40]
test edx, edx
fstp qword [esp + 0x14]
fld qword [ebx + 0x48]
fst qword [esp + 0x70]
jle 0x5392ed
mov ecx, dword [esp + 0x3c]
add ecx, 0x48
fld qword [ecx]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x5392c5
fstp st(0)
fld qword [ecx]
fst qword [esp + 0x70]
add ecx, 0x60
dec edx
jne 0x5392b0
jmp 0x5392ed
mov edx, dword [ebp + 8]
fld qword [edx]
fadd qword [0x5e27e0]
fst qword [esp + 0x70]
fld qword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x5392ed
fst qword [esp + 0x24]
fld qword [ebx + 0x48]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5392fe
fstp st(0)
fld qword [ebx + 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 0x53942a
movsx eax, word [ebx + 0x10]
fstp qword [ebp + 0x1c]
mov ecx, dword [esp + 0x40]
lea eax, [eax + ecx + 1]
cmp eax, 0xffffffff
je 0x539350
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x53939e
mov eax, dword [esi + 8]
mov dword [esp + 0x14], ecx
mov edx, eax
dec eax
test edx, edx
je 0x53938b
inc eax
mov dword [esp + 0x1c], eax
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 0x53936a
mov eax, dword [esi + 4]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.00536b50
mov ebx, dword [esi + 8]
push 0xffffffffffffffff
lea ecx, [ebx + 1]
push ecx
mov ecx, esi
call fcn.005442f0
mov edx, dword [esi + 4]
lea ecx, [ebx + ebx*2]
shl ecx, 5
push edi
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 0x53942c
lea esi, [eax]
mov eax, ebx
mov ecx, edi
push eax
add ebx, 0x60
add edi, 0x60
call fcn.00530160
dec esi
jne 0x539415
jmp 0x53942c
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 0x53945e
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 0x5394a8
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x53949f
lea esi, [eax + 0x38]
lea edi, [ecx]
mov ecx, esi
call fcn.0042bd50
add esi, 0x60
dec edi
jne 0x53948e
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