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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
mov ecx, eax
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov dl, byte [esp + 0x2c]
shl ecx, 5
sub ecx, eax
mov eax, dword [esp + 0x20]
push edi
push ebx
lea edi, [ecx + esi + 0xc214]
mov ecx, dword [esp + 0x30]
push eax
push esi
mov byte [edi + 2], cl
lea ebp, [eax + ecx*2]
add ecx, eax
mov byte [edi], al
mov byte [edi + 1], bl
mov byte [edi + 3], dl
mov dword [esp + 0x1c], ecx
call fcn.00474070
fstp dword [esp + 0x28]
push ebx
push ebp
push esi
call fcn.00474070
fadd dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push ebx
push edx
push esi
fmul dword [0x4bf770]
fstp dword [esp + 0x40]
call fcn.00474070
mov eax, dword [esp + 0x50]
fsubr dword [esp + 0x40]
lea ecx, [ebx + eax*2]
add eax, ebx
push ecx
push ebp
fstp dword [edi + 7]
push esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
call fcn.00474070
fstp dword [esp + 0x44]
push ebx
push ebp
push esi
call fcn.00474070
fadd dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
push ecx
push ebp
fmul dword [0x4bf770]
push esi
fstp dword [esp + 0x5c]
call fcn.00474070
fsubr dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
add esp, 0x48
fstp dword [edi + 0xb]
push edx
push eax
push esi
call fcn.00474070
mov ecx, dword [esp + 0x28]
fstp dword [esp + 0x20]
push ecx
push ebp
push esi
call fcn.00474070
fadd dword [esp + 0x2c]
fmul dword [0x4bf770]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push edx
push eax
push esi
fstp dword [esp + 0x38]
call fcn.00474070
fsubr dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
push ecx
push edx
fstp dword [edi + 0xf]
push esi
call fcn.00474070
mov eax, dword [esp + 0x54]
push ebx
fstp dword [esp + 0x48]
push eax
push esi
call fcn.00474070
fadd dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
push edx
fmul dword [0x4bf770]
push esi
fstp dword [esp + 0x5c]
call fcn.00474070
fsubr dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
add esp, 0x48
test eax, eax
fstp dword [edi + 0x13]
je 0x4754b7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.00474070
fstp dword [esp + 0x3c]
push ebx
push ebp
push esi
call fcn.00474070
fadd dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push edx
push eax
fmul dword [0x4bf770]
push esi
fstp dword [esp + 0x54]
call fcn.00474070
fsubr dword [esp + 0x54]
add esp, 0x24
jmp 0x4754f8
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push esi
call fcn.00474070
mov edx, dword [esp + 0x30]
push ebx
fstp dword [esp + 0x40]
push edx
push esi
call fcn.00474070
fadd dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
push eax
push ecx
fmul dword [0x4bf770]
push esi
fstp dword [esp + 0x54]
call fcn.00474070
fsubr dword [esp + 0x54]
add esp, 0x24
fstp dword [edi + 0x17]
lea ecx, [edi + 7]
mov edx, 5
fld dword [ecx]
fcomp dword [0x4bf6f8]
fnstsw ax
test ah, 1
je 0x475518
fld dword [ecx]
fchs
fstp dword [ecx]
add ecx, 4
dec edx
jne 0x475503
mov edx, dword [edi + 7]
lea ecx, [edi + 0xb]
mov dword [edi + 0x1b], edx
mov edx, 4
fld dword [ecx]
fcomp dword [edi + 0x1b]
fnstsw ax
test ah, 0x41
jne 0x47553d
mov eax, dword [ecx]
mov dword [edi + 0x1b], eax
add ecx, 4
dec edx
jne 0x47552c
mov eax, dword [esp + 0x2c]
cmp eax, 1
jle 0x47561e
cdq
mov ecx, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x20]
mov ebp, eax
sar ebp, 1
push 1
push ebp
push ebx
lea eax, [edx*4 + 1]
push ecx
push eax
push esi
call fcn.00475320
mov ecx, dword [esp + 0x28]
push 0
push ebp
push ebx
mov ebx, dword [esp + 0x44]
push ecx
lea edx, [ebx*4 + 2]
push edx
push esi
call fcn.00475320
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push 0
push ebp
push eax
lea edx, [ebx*4 + 3]
push ecx
push edx
push esi
call fcn.00475320
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
add esp, 0x48
lea edx, [ebx*4 + 4]
push 1
push ebp
push eax
push ecx
push edx
push esi
call fcn.00475320
mov eax, ebx
add esp, 0x18
shl eax, 5
sub eax, ebx
mov edx, 4
lea esi, [esi + eax*4]
lea ecx, [esi + 0xc24e]
fld dword [ecx]
fcomp dword [edi + 0x1b]
fnstsw ax
test ah, 0x41
jne 0x4755ef
mov eax, dword [ecx]
mov dword [edi + 0x1b], eax
add ecx, 0x1f
dec edx
jne 0x4755de
mov dl, byte [esi + 0xc239]
mov eax, 2
mov byte [edi + 6], dl
lea ecx, [esi + 0xc258]
cmp byte [ecx], dl
jne 0x47566f
inc eax
add ecx, 0x1f
cmp eax, 4
jle 0x475609
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push esi
call fcn.00473c30
mov edx, dword [esp + 0x30]
push ebx
mov byte [edi + 6], al
lea ebp, [edx + 1]
push ebp
push esi
call fcn.00473c30
mov cl, byte [edi + 6]
add esp, 0x18
cmp al, cl
jne 0x47566f
inc ebx
push ebx
push ebp
push esi
call fcn.00473c30
mov cl, byte [edi + 6]
add esp, 0xc
cmp al, cl
jne 0x47566f
mov eax, dword [esp + 0x24]
push ebx
push eax
push esi
call fcn.00473c30
mov cl, byte [edi + 6]
add esp, 0xc
cmp al, cl
je 0x475673
mov byte [edi + 6], 0xff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret