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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp ecx, 2
jne 0x523a1b
mov eax, dword [0x5f40d4]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*8 + 0x10]
jmp 0x523a47
test ecx, ecx
jne 0x523a2f
mov eax, dword [0x5f40f0]
mov edx, ebx
shl edx, 6
mov edx, dword [edx + eax + 0x30]
jmp 0x523a47
cmp ecx, 1
jne 0x523a44
mov eax, dword [0x5f40fc]
mov edx, ebx
imul edx, edx, 0x68
mov edx, dword [edx + eax + 0x5c]
jmp 0x523a47
or edx, 0xffffffff
lea eax, [edx + edx*2]
shl eax, 4
add eax, dword [0x5f4098]
cmp dword [eax + 0xc], ebx
jne 0x523a62
cmp dword [eax + 0x14], ecx
jne 0x523a62
mov ecx, dword [eax + 4]
jmp 0x523a64
mov ecx, dword [eax]
mov edi, edx
jmp 0x523a70
mov esi, dword [0x5f408c]
lea edx, [ecx + ecx*2]
add edx, edx
cmp dword [esi + edx*8 + 0x18], 3
jne 0x523e92
cmp dword [eax], ecx
jne 0x523a8f
mov edx, dword [eax + 0x18]
jmp 0x523a92
mov edx, dword [eax + 0x20]
lea eax, [edx + edx*2]
shl eax, 4
add eax, dword [0x5f4098]
mov esi, dword [eax]
cmp esi, ecx
jne 0x523aa9
mov ecx, dword [eax + 4]
jmp 0x523aab
mov ecx, esi
cmp edx, edi
jne 0x523a70
mov ecx, dword [esp + 0x10]
shl ecx, 6
add ecx, dword [0x5f40f0]
mov edx, dword [ecx]
cmp edx, ebx
je 0x523ea6
cmp dword [ecx + 4], ebx
je 0x523ea6
mov edi, dword [0x5f40d4]
lea esi, [ebx + ebx*4]
add esi, esi
add esi, esi
add esi, esi
fld qword [esi + edi]
fst qword [esp + 0x40]
fld qword [esi + edi + 8]
fst qword [esp + 0x48]
fld qword [ecx + 0x10]
fst qword [esp + 0x28]
fld qword [ecx + 0x18]
fst qword [esp + 0x18]
fld st(2)
fmul st(1)
fld st(4)
fmul st(3)
faddp st(1)
fadd qword [ecx + 0x20]
fst qword [esp + 0x30]
fld qword [0x57d1c0]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x523bfa
fld qword [0x583f58]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x523bdd
fld qword [ecx + 0x28]
lea eax, [edx + edx*4]
fstp qword [esp + 0x20]
lea eax, [edi + eax*8]
fld qword [eax]
fld qword [eax + 8]
fld st(6)
fsubrp st(2)
fxch st(1)
fmul st(3)
fld st(5)
fsubrp st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fst qword [0x77af28]
fld qword [esp + 0x20]
fadd st(2)
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x523bf6
fcomp qword [0x583f58]
fnstsw ax
test ah, 5
jnp 0x523bdd
mov edi, dword [esp + 0x10]
fstp st(1)
push 2
fstp st(1)
push ebx
fstp st(0)
push 0
fstp st(1)
push edi
fstp st(0)
call fcn.00520d20
push 1
push 0
push edi
call fcn.00520d50
add esp, 0x1c
test al, al
je 0x523bc3
mov byte [0x5f419c], 1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x40]
fld qword [esp + 0x18]
fld qword [esp + 0x28]
fld qword [0x57d1c0]
fld qword [esp + 0x48]
fxch st(3)
fxch st(1)
fldz
fcomp qword [esp + 0x30]
fnstsw ax
fxch st(1)
test ah, 5
jp 0x523bfe
fst qword [esp + 0x28]
fxch st(2)
fchs
jmp 0x523c06
fstp st(0)
jmp 0x523bdd
fstp st(1)
jmp 0x523bdd
fchs
fst qword [esp + 0x28]
fxch st(2)
fst qword [esp + 0x30]
mov eax, dword [ebp + 0xc]
fld st(2)
fmulp st(5)
fxch st(4)
fchs
fld st(4)
fmulp st(4)
fsubrp st(3)
fxch st(2)
fst qword [esp + 0x40]
fld st(3)
fchs
fstp qword [esp + 0x58]
fxch st(1)
fst qword [esp + 0x60]
cmp eax, 2
jne 0x523c40
mov ecx, dword [0x5f40d4]
mov edi, dword [esi + ecx + 0x10]
jmp 0x523c6d
test eax, eax
jne 0x523c54
mov eax, dword [0x5f40f0]
mov edx, ebx
shl edx, 6
mov edi, dword [edx + eax + 0x30]
jmp 0x523c6d
cmp eax, 1
jne 0x523c6a
mov edx, dword [0x5f40fc]
mov ecx, ebx
imul ecx, ecx, 0x68
mov edi, dword [ecx + edx + 0x5c]
jmp 0x523c6d
or edi, 0xffffffff
mov eax, dword [0x5f4098]
lea esi, [edi + edi*2]
shl esi, 4
cmp dword [esi + eax + 0xc], ebx
jne 0x523c90
mov ecx, dword [ebp + 0xc]
cmp dword [esi + eax + 0x14], ecx
jne 0x523c90
mov ebx, dword [esi + eax + 4]
mov eax, dword [esi + eax]
jmp 0x523c9c
mov eax, dword [0x5f4098]
mov ebx, dword [esi + eax]
mov eax, dword [esi + eax + 4]
lea edx, [eax + eax*2]
mov eax, dword [0x5f408c]
add edx, edx
fld qword [eax + edx*8]
fld qword [eax + edx*8 + 8]
fld qword [eax + edx*8 + 0x10]
fstp qword [esp + 0x18]
fmul st(5)
fxch st(1)
fmul st(2)
faddp st(1)
fadd st(2)
fst qword [0x77aec0]
fcom st(3)
fnstsw ax
test ah, 0x41
jp 0x523ce4
fcomp qword [0x583f58]
fnstsw ax
test ah, 5
jp 0x523ce0
or edx, 0xffffffff
jmp 0x523ceb
xor edx, edx
jmp 0x523ceb
fstp st(0)
mov edx, 1
mov dword [esp + 0x10], edi
mov eax, dword [0x5f408c]
lea ecx, [ebx + ebx*2]
add ecx, ecx
fld qword [eax + ecx*8]
fld qword [eax + ecx*8 + 8]
fld qword [eax + ecx*8 + 0x10]
fst qword [esp + 0x50]
fld st(3)
fmulp st(3)
fld st(6)
fmulp st(2)
fxch st(2)
faddp st(1)
fadd st(3)
fst qword [0x77aec0]
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x523d3b
fcomp qword [0x583f58]
fnstsw ax
test ah, 5
jp 0x523d37
or eax, 0xffffffff
jmp 0x523d42
xor eax, eax
jmp 0x523d42
fstp st(0)
mov eax, 1
neg edx
mov dword [esp + 0x14], eax
cmp eax, edx
jne 0x523df0
fcom st(3)
fnstsw ax
test ah, 0x41
jnp 0x523df0
fxch st(3)
fcom qword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x523e09
fstp st(1)
lea ecx, [esp + 0x20]
fstp st(3)
push ecx
fstp st(2)
lea edx, [esp + 0x6c]
push edx
fstp st(1)
push edi
fstp st(0)
fld qword [esp + 0x64]
sub esp, 0x10
mov eax, esp
fstp qword [eax]
fld qword [esp + 0x7c]
fstp qword [eax + 8]
mov eax, dword [esp + 0x58]
push eax
call fcn.0052dd30
add esp, 0x20
test al, al
je 0x523dd6
fld qword [0x5f42d0]
sub esp, 8
fstp qword [esp]
push 0
fld qword [esp + 0x74]
sub esp, 0x10
mov eax, esp
fstp qword [eax]
push edi
fld qword [esp + 0x90]
fstp qword [eax + 8]
call fcn.0051e710
add esp, 0x20
test al, al
jne 0x523e4c
fld qword [esp + 0x50]
fld qword [0x57d1c0]
fld qword [esp + 0x40]
fld qword [esp + 0x30]
fld qword [esp + 0x28]
fxch st(1)
fxch st(4)
mov ecx, dword [0x5f4098]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp dword [esi + ecx], ebx
jne 0x523e0d
mov edi, dword [esi + ecx + 0x18]
jmp 0x523e11
fxch st(3)
jmp 0x523df0
mov edi, dword [esi + ecx + 0x20]
lea esi, [edi + edi*2]
shl esi, 4
mov eax, dword [esi + ecx]
cmp eax, ebx
jne 0x523e24
mov ebx, dword [esi + ecx + 4]
jmp 0x523e26
mov ebx, eax
cmp edi, dword [esp + 0x10]
jne 0x523cef
fstp st(0)
xor al, al
fstp st(2)
fstp st(0)
fstp st(0)
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x20]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esp + 0x88]
fstp qword [esp + 8]
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.0050ede0
mov esi, eax
push 1
push esi
push edi
call fcn.0050f780
mov edx, dword [0x5f408c]
lea ecx, [esi + esi*2]
add esp, 0x24
add ecx, ecx
mov dword [edx + ecx*8 + 0x18], 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x523ebd
mov ecx, dword [0x5f40d4]
lea eax, [ebx + ebx*4]
mov esi, dword [ecx + eax*8 + 0x10]
jmp 0x523eea
test eax, eax
jne 0x523ed1
mov eax, dword [0x5f40f0]
mov edx, ebx
shl edx, 6
mov esi, dword [edx + eax + 0x30]
jmp 0x523eea
cmp eax, 1
jne 0x523ee7
mov edx, dword [0x5f40fc]
mov ecx, ebx
imul ecx, ecx, 0x68
mov esi, dword [ecx + edx + 0x5c]
jmp 0x523eea
or esi, 0xffffffff
mov ecx, dword [0x5f4098]
lea eax, [esi + esi*2]
shl eax, 4
add ecx, eax
cmp dword [ecx + 0xc], ebx
jne 0x523f0a
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], edx
jne 0x523f0a
mov eax, dword [ecx + 4]
jmp 0x523f0c
mov eax, dword [ecx]
mov edi, dword [0x5f408c]
mov dword [esp + 0x10], esi
lea edx, [eax + eax*2]
add edx, edx
cmp ebx, dword [edi + edx*8 + 0x20]
je 0x523f60
cmp dword [ecx], eax
jne 0x523f2a
mov esi, dword [ecx + 0x18]
jmp 0x523f2d
mov esi, dword [ecx + 0x20]
lea ecx, [esi + esi*2]
shl ecx, 4
add ecx, dword [0x5f4098]
mov edx, dword [ecx]
cmp edx, eax
jne 0x523f44
mov eax, dword [ecx + 4]
jmp 0x523f46
mov eax, edx
cmp esi, dword [esp + 0x10]
jne 0x523f16
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5f408c]
lea eax, [eax + eax*2]
add eax, eax
fld qword [ecx + eax*8]
sub esp, 0x18
fld qword [ecx + eax*8 + 8]
fld qword [ecx + eax*8 + 0x10]
fstp qword [esp + 0x38]
fldz
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.0050ede0
mov edi, eax
push 0
push edi
push esi
call fcn.0050f780
mov edx, dword [0x5f408c]
lea eax, [edi + edi*2]
add eax, eax
mov dword [edx + eax*8 + 0x18], 0
mov ecx, dword [0x5f408c]
mov dword [ecx + eax*8 + 0x20], ebx
mov edx, dword [0x5f40d4]
lea ecx, [ebx + ebx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ecx + edx + 0x14], edi
mov edx, dword [0x5f40d4]
mov dword [ecx + edx + 0x10], esi
mov esi, dword [0x5f40d4]
add esp, 0x24
mov edx, 1
mov byte [ecx + esi + 0x19], dl
mov ecx, dword [0x5f408c]
pop edi
mov dword [ecx + eax*8 + 0x18], edx
mov ecx, dword [esp + 0x78]
pop esi
pop ebx
xor ecx, esp
mov al, dl
call fcn.00551a8e
mov esp, ebp
pop ebp
ret