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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52eac4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov al, byte [ebp + 8]
push ebx
push esi
push edi
test al, al
mov dword [esp + 0x4c], ecx
jne 0x503878
fld qword [ebp + 0x10]
fcomp qword [0x531cf0]
mov ebx, dword [ebp + 0x1c]
fnstsw ax
test ah, 0x40
jne 0x50380b
lea ecx, [esp + 0xb0]
call fcn.00488210
mov eax, dword [ebp + 0xc]
sub esp, 8
sub esp, 8
xor edi, edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 4]
fld qword [esp + 0x2c]
fadd qword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x118], edi
fstp qword [esp + 8]
fld qword [esp + 0x24]
fadd qword [eax + 0x18]
mov eax, dword [esp + 0x30]
fstp qword [esp]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0xd0]
call fcn.0048a550
lea ecx, [esp + 0x30]
call fcn.00483030
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x10c], 1
call fcn.00483140
mov esi, dword [ebx + 8]
dec esi
cmp esi, edi
mov dword [esp + 0xc], esi
jl 0x50337a
lea eax, [esi + esi*2]
shl eax, 2
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jmp 0x5032f4
mov eax, dword [esp + 0x10]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x34]
add esi, eax
sub esp, 8
add ecx, edi
sub esp, 8
fld dword [esi + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc0]
fstp qword [esp + 8]
fld dword [esi + 4]
fstp qword [esp]
call fcn.0048aa30
mov edx, dword [esp + 0x1c]
sub esp, 8
sub esp, 8
lea ecx, [esp + 0xc0]
fstp dword [edx + 4]
fld dword [esi + 8]
mov eax, dword [esp + 0x44]
fstp qword [esp + 8]
fld dword [esi + 4]
add eax, edi
fstp qword [esp]
mov dword [esp + 0x2c], eax
call fcn.0048aa50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub edx, 0xc
add edi, 0xc
dec eax
fstp dword [ecx + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x5032f0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
lea edi, [esi + 1]
test edi, edi
jne 0x5033a7
test eax, eax
je 0x503398
push eax
call fcn.0051aee4
add esp, 4
xor eax, eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
jmp 0x5034b5
test eax, eax
jne 0x5033d6
lea edx, [edi + edi*2]
shl edx, 2
push edx
call fcn.0051af44
add esp, 4
mov dword [esp + 0x34], eax
push edi
push eax
call fcn.0047d800
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
jmp 0x5034b5
mov ecx, dword [esp + 0x3c]
cmp edi, ecx
jg 0x503404
mov ecx, dword [esp + 0x38]
cmp edi, ecx
jle 0x5033fb
mov edx, edi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.0047d800
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], edi
jmp 0x5034b5
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x503431
mov eax, dword [esp + 0x38]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x503425
mov eax, 4
jmp 0x503431
cmp eax, 0x400
jle 0x503431
mov eax, 0x400
add eax, ecx
cmp edi, eax
jge 0x50343d
mov dword [esp + 0x10], eax
jmp 0x503443
mov dword [esp + 0x10], edi
mov eax, edi
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0051af44
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x1c], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x38]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.0047d800
mov eax, dword [esp + 0x34]
push eax
call fcn.0051aee4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [eax], 1
mov eax, dword [esp + 0x34]
lea edx, [esi + esi*2]
mov dword [eax + edx*4], 4
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea esi, [ecx - 1]
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x5034fb
test eax, eax
je 0x5034ee
push eax
call fcn.0051aee4
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x5035e7
test eax, eax
jne 0x503523
lea ecx, [esi + esi*2]
shl ecx, 2
push ecx
call fcn.0051af44
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.0047d800
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x5035e7
mov edi, dword [ebx + 0xc]
cmp esi, edi
jg 0x503547
cmp esi, ecx
jle 0x50353f
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.0047d800
mov dword [ebx + 8], esi
jmp 0x5035e7
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x503571
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x503565
mov eax, 4
jmp 0x503571
cmp eax, 0x400
jle 0x503571
mov eax, 0x400
add eax, edi
cmp esi, eax
jge 0x50357d
mov dword [esp + 0xc], eax
jmp 0x503583
mov dword [esp + 0xc], esi
mov eax, esi
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0051af44
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x14], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 8]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.0047d800
mov eax, dword [ebx + 4]
push eax
call fcn.0051aee4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
lea ecx, [esp + 0x50]
call fcn.00488210
mov al, byte [ebp + 0x18]
mov byte [esp + 0x108], 2
test al, al
je 0x50360d
fld qword [ebp + 0x10]
lea edx, [esp + 0x50]
fabs
push edx
fchs
jmp 0x503617
fld qword [ebp + 0x10]
lea eax, [esp + 0x50]
push eax
fabs
mov ecx, dword [ebp + 0xc]
sub esp, 8
fstp qword [esp]
call fcn.00489200
push fcn.00483080
push fcn.00483030
push 2
lea ecx, [esp + 0x84]
push 0x1c
push ecx
call fcn.0051bfa4
lea edx, [esp + 0x78]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x114], 3
call fcn.005038d0
xor eax, eax
lea esi, [esp + 0x94]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
and eax, 0xff
lea edx, [eax*8]
sub edx, eax
shl edx, 2
sub esi, edx
mov eax, dword [esi + 8]
test eax, eax
jle 0x5036dd
mov edx, dword [esi + 4]
mov ecx, dword [edx]
test cl, 6
jne 0x5036a0
inc dword [esp + 0xc]
jmp 0x5036a9
cmp ecx, 4
jne 0x5036a9
inc dword [esp + 0x10]
inc edi
add edx, 0xc
cmp edi, eax
jl 0x503693
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x5036d8
push fcn.00483080
push 2
lea eax, [esp + 0x80]
push 0x1c
mov byte [esp + 0x114], 2
push eax
jmp 0x5036f6
cmp eax, 2
je 0x50374d
push fcn.00483080
push 2
lea ecx, [esp + 0x80]
push 0x1c
mov byte [esp + 0x114], 2
push ecx
call fcn.0051beb0
lea ecx, [esp + 0x50]
mov byte [esp + 0x108], 1
call fcn.00519440
lea ecx, [esp + 0x30]
mov byte [esp + 0x108], 0
call fcn.00483080
lea ecx, [esp + 0xb0]
mov dword [esp + 0x108], 0xffffffff
call fcn.00519440
xor al, al
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [eax], 3
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 8]
mov edx, edi
add edx, ecx
mov ecx, ebx
push edx
call fcn.00434400
mov edx, dword [ebx + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edi + edi*2]
lea ecx, [edx + ecx*4]
mov edx, eax
dec eax
test edx, edx
je 0x5037aa
inc eax
mov dword [esp + 0x14], eax
mov eax, esi
mov edx, ecx
add ecx, 0xc
add esi, 0xc
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x503785
mov ecx, dword [esp + 0x4c]
push ebx
call fcn.00502fa0
push fcn.00483080
push 2
lea ecx, [esp + 0x80]
push 0x1c
push ecx
mov byte [esp + 0x118], 2
call fcn.0051beb0
lea ecx, [esp + 0x50]
mov byte [esp + 0x108], 1
call fcn.00519440
lea ecx, [esp + 0x30]
mov byte [esp + 0x108], 0
call fcn.00483080
lea ecx, [esp + 0xb0]
mov dword [esp + 0x108], 0xffffffff
call fcn.00519440
mov eax, dword [ebx + 8]
cmp eax, 2
jle 0x50385f
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*2]
push 0xffffffffffffffff
mov dword [ecx + eax*4 - 0xc], 3
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov esi, dword [edx]
inc ecx
push ecx
mov ecx, ebx
mov edi, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
call fcn.00434400
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4 - 0xc]
mov edx, dword [esp + 0x24]
mov ecx, eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov dword [eax], 4
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x1c]
push 0xffffffffffffffff
mov eax, dword [esi + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
mov dword [eax + edx*4 - 0xc], 8
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edi, dword [ecx]
inc eax
push eax
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, esi
mov dword [esp + 0x2c], edx
call fcn.00434400
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4 - 0xc]
mov edx, dword [esp + 0x24]
mov ecx, eax
mov dword [ecx], edi
mov dword [ecx + 4], ebx
jmp 0x503856