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

Disassembly:
sub esp, 0x144
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x4d4]
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0x78]
lea edx, [eax + eax*4]
mov eax, dword [0x74d084]
test eax, eax
mov dword [esp + 0x24], edx
jle 0x47ffe2
lea ecx, [eax + eax*4]
mov esi, edx
sub esi, ecx
mov edi, edx
jmp 0x47ffec
lea esi, [edx + 0x1e]
lea eax, [eax + eax*4]
mov edi, esi
sub edi, eax
test esi, esi
jge 0x47fff2
xor esi, esi
mov ecx, dword [ebp + 0x4bc]
test ecx, ecx
jne 0x480000
xor eax, eax
jmp 0x48000b
mov eax, dword [ebp + 0x4c0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jbe 0x480028
mov eax, dword [ebp + 0x4bc]
test eax, eax
jne 0x48001d
xor edi, edi
jmp 0x480028
mov edi, dword [ebp + 0x4c0]
sub edi, eax
sar edi, 2
cmp esi, edi
jge 0x480072
lea ebx, [ebp + 0x4c8]
mov ecx, dword [ebp + 0x4bc]
mov edx, dword [ecx + esi*4]
lea eax, [ecx + esi*4]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], edx
call fcn.00599a00
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x4cc]
je 0x480069
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
push 0
call dword [edx + 0x54]
inc esi
cmp esi, edi
jl 0x480032
mov edx, dword [esp + 0x24]
mov ebx, edx
mov dword [esp + 0x1c], 0
lea esp, [esp]
mov ecx, dword [ebp + 0x4bc]
test ecx, ecx
je 0x480275
mov eax, dword [ebp + 0x4c0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x480275
add edx, 0x1e
cmp ebx, edx
jge 0x480275
mov eax, ecx
mov ecx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [ebp + 0x4c8]
call fcn.00599a00
mov edi, dword [esp + 0x28]
cmp edi, dword [ebp + 0x4cc]
je 0x480262
mov eax, dword [esp + 0x1c]
cdq
mov ecx, 5
idiv ecx
xor esi, esi
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x14], 0x3f800000
mov byte [esp + 0x48], 0
mov dword [esp + 0x14c], esi
mov dword [esp + 0x150], esi
mov dword [esp + 0x34], esi
mov ecx, dword [edi + 0x10]
imul edx, edx, 0x36
imul eax, eax, 0x2c
add edx, 0x51
add eax, 0xc4
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00605430
test al, al
je 0x480262
mov ecx, dword [0x74e914]
mov edx, dword [ecx]
lea eax, [esp + 0x48]
push eax
call dword [edx + 0x5c]
cmp eax, esi
je 0x480171
mov ecx, dword [esp + 0x150]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x150]
push ecx
mov ecx, eax
call dword [edx + 0x28]
cmp eax, esi
jne 0x480175
xor eax, eax
jmp 0x48017c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
movzx edx, word [eax + 0x24]
movzx ecx, word [eax + 0x28]
movzx esi, word [eax + 0x26]
movzx eax, word [eax + 0x2a]
add ecx, edx
sub ecx, edx
add eax, esi
cmp ecx, 0x20
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ecx
jg 0x4801b0
mov ecx, eax
sub ecx, esi
cmp ecx, 0x20
mov dword [esp + 0x20], ecx
jle 0x4801f3
fild dword [esp + 0x18]
sub eax, esi
mov dword [esp + 0x20], eax
fdivr dword [0x6d3470]
fstp dword [esp + 0x10]
fild dword [esp + 0x20]
fdivr dword [0x6d3470]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4801eb
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x4801f3
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x10]
push edx
call fcn.00604590
fild dword [esp + 0x20]
fmul dword [esp + 0x14]
fsubr dword [0x6d3470]
fmul dword [0x6d338c]
fiadd dword [esp + 0x30]
fild dword [esp + 0x3c]
fmul dword [esp + 0x14]
fsubp st(1)
call fcn.0063199c
fild dword [esp + 0x18]
push eax
fmul dword [esp + 0x14]
fsubr dword [0x6d3470]
fmul dword [0x6d338c]
fiadd dword [esp + 0x30]
fild dword [esp + 0x3c]
fmul dword [esp + 0x14]
fsubp st(1)
call fcn.0063199c
mov ecx, dword [edi + 0x10]
push eax
call fcn.00601520
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push 1
call dword [eax + 0x54]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
inc ebx
inc eax
mov dword [esp + 0x1c], eax
jmp 0x480080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret