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

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x70]
push edi
movzx edi, word [ecx + 2]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x4c], edx
movzx edx, word [ecx + 4]
mov dword [esp + 0x18], edi
je 0x5078f3
fld dword [ebp + 0x2c]
fld st(0)
fadd dword [eax + 0x24]
fstp dword [esp + 0x28]
fld dword [eax + 0x2c]
fsub st(1)
fstp dword [esp + 0x2c]
fld st(0)
fadd dword [eax + 0x28]
fstp dword [esp + 0x1c]
fld dword [eax + 0x30]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [0x53d7c0]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x507341
mov dword [esp + 0x28], 0
fld dword [0x53d7c8]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x50735a
mov dword [esp + 0x2c], 0x3f800000
fld dword [0x53d7c0]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x507373
mov dword [esp + 0x1c], 0
fld dword [0x53d7c8]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x50738c
mov dword [esp + 0x20], 0x3f800000
mov eax, dword [ebp + 0x24]
test eax, eax
push ebx
push esi
jne 0x507573
test edx, edx
mov esi, dword [ecx + 0xc]
jbe 0x5078f1
fld dword [esp + 0x2c]
mov dword [esp + 0x78], edx
fstp qword [esp + 0x64]
fld qword [0x53d6d0]
fld qword [esp + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5073fe
fld dword [esp + 0x18]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x5073e1
fld dword [esp + 0x18]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x5073fe
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add esi, dword [esp + 0x20]
jmp 0x507540
fld qword [0x53d6d0]
mov eax, dword [esp + 0x1c]
fld qword [esp + 0x64]
mov ecx, dword [esp + 0x18]
fucompp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
fnstsw ax
test ah, 0x44
jp 0x5074a7
test edi, edi
jbe 0x507544
mov ebx, edi
nop
fld dword [esp + 0x10]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x507483
fld dword [esp + 0x10]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x507483
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
call fcn.004ffe30
fstp dword [esp + 0x88]
mov edx, dword [esp + 0x88]
push edx
mov ecx, ebp
call fcn.005064c0
mov edi, dword [esp + 0x30]
add esp, 0x10
mov byte [esi], al
jmp 0x507486
mov byte [esi], 0
fld dword [esp + 0x10]
inc esi
dec ebx
fadd dword [esp + 0x50]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x54]
fstp dword [esp + 0x14]
jne 0x507430
jmp 0x507544
test edi, edi
jbe 0x507544
nop
fld dword [esp + 0x10]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x50751d
fld dword [esp + 0x10]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x50751d
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x50751d
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x50751d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
call fcn.004ffe30
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
push eax
mov ecx, ebp
call fcn.005064c0
add esp, 0x10
mov byte [esi], al
jmp 0x507520
mov byte [esi], 0
fld dword [esp + 0x10]
inc esi
dec edi
fadd dword [esp + 0x50]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [esp + 0x54]
fstp dword [esp + 0x14]
jne 0x5074b0
mov edi, dword [esp + 0x20]
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
fadd dword [esp + 0x1c]
dec eax
mov dword [esp + 0x78], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x48]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jne 0x5073b0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x5c
ret
mov ebx, dword [ecx + 0xc]
dec eax
cmp eax, 3
mov byte [esp + 0x7c], 0
ja case.default.0x507585
jmp dword [eax*4 + 0x5078fc]
fld dword [esp + 0x50]
mov byte [esp + 0x7c], 1
fmul dword [0x54a238]
fstp dword [esp + 0x4c]
fld dword [esp + 0x54]
fmul dword [0x54a238]
jmp 0x5075f6
fld dword [esp + 0x50]
mov byte [esp + 0x7c], 1
fmul dword [0x54a240]
fstp dword [esp + 0x4c]
fld dword [esp + 0x54]
jmp 0x5075f0
fld dword [esp + 0x2c]
fmul dword [0x54a238]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [0x54a238]
jmp 0x5075f6
fld dword [esp + 0x2c]
fmul dword [0x54a240]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [0x54a240]
fstp dword [esp + 0x44]
test edx, edx
jbe 0x5078f1
fld dword [esp + 0x2c]
mov dword [esp + 0x60], edx
fstp qword [esp + 0x64]
jmp 0x507614
mov edi, dword [esp + 0x20]
fld qword [0x53d6d0]
fld qword [esp + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5076ac
fld dword [esp + 0x44]
sub esp, 8
fstp qword [esp + 0x60]
fld dword [esp + 0x20]
fstp qword [esp + 0x44]
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.004d4550
fadd qword [esp + 0x44]
add esp, 8
fld dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 5
jnp 0x507681
fld qword [esp + 0x58]
sub esp, 8
fstp qword [esp]
call fcn.004d4550
fsubr qword [esp + 0x44]
add esp, 8
fld dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
jne 0x5076a8
mov al, byte [esp + 0x7c]
test al, al
je 0x5076a8
mov edx, dword [esp + 0x20]
test edx, edx
jbe 0x5078ca
mov edi, ebx
mov ecx, edx
mov eax, 0xff000000
rep stosd dword es:[edi], eax
lea ebx, [ebx + edx*4]
jmp 0x5078ca
mov edi, dword [esp + 0x20]
test edi, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jbe 0x507873
mov dword [esp + 0x58], edi
jmp 0x5076d0
fld dword [esp + 0x10]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x14]
fsub dword [esp + 0x44]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x50774f
fld dword [esp + 0x3c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x50774f
fld dword [esp + 0x38]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x50774f
fld dword [esp + 0x38]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x50774f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
call fcn.004ffe30
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
push eax
mov ecx, ebp
call fcn.005064c0
add esp, 0x10
mov esi, eax
jmp 0x507751
xor esi, esi
fld dword [esp + 0x10]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x5077b8
fld dword [esp + 0x10]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x5077b8
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x5077b8
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x5077b8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
call fcn.004ffe30
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.005064c0
add esp, 0x10
mov edi, eax
jmp 0x5077ba
xor edi, edi
fld dword [esp + 0x4c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x44]
fadd dword [esp + 0x14]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x507837
fld dword [esp + 0x3c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x507837
fld dword [esp + 0x38]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x507837
fld dword [esp + 0x38]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x507837
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
call fcn.004ffe30
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
push edx
mov ecx, ebp
call fcn.005064c0
add esp, 0x10
jmp 0x507839
xor eax, eax
fld dword [esp + 0x10]
shl esi, 8
fadd dword [esp + 0x50]
or esi, edi
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x58]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
mov dword [ebx], esi
fadd dword [esp + 0x54]
add ebx, 4
dec eax
mov dword [esp + 0x58], eax
fstp dword [esp + 0x14]
jne 0x5076d0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
lea eax, [edi*4]
mov esi, ebx
sub esi, eax
dec ecx
mov edi, 1
js 0x5078ca
lea ebx, [ebx]
mov ebp, dword [esi + ecx*4]
and ebp, 0xffffff
je 0x50789f
xor edi, edi
jmp 0x5078ad
inc edi
cmp edi, 0xff
jle 0x5078ad
mov edi, 0xff
xor edx, edx
lea eax, [edi - 1]
test eax, eax
setle dl
dec edx
and eax, edx
shl eax, 0x18
or eax, ebp
dec ecx
mov dword [esi + ecx*4 + 4], eax
jns 0x507890
mov ebp, dword [esp + 0x78]
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
fadd dword [esp + 0x1c]
dec eax
mov dword [esp + 0x60], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x48]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jne 0x507610
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x5c
ret