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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
cmp edi, 0x10
jg 0x47b791
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
cmp edi, ebp
je 0x47b9ca
lea esi, [edi + 0x4c]
cmp esi, ebp
je 0x47b9ca
lea ebx, [esi + 0x4c]
push esi
lea ecx, [esp + 0x28]
call fcn.0047b020
fld dword [esp + 0x3c]
fsub dword [esp + 0x6c]
fld dword [edi + 0x18]
fsub dword [edi + 0x48]
fcompp
fnstsw ax
test ah, 0x41
jne 0x47b75d
sub esp, 0x4c
lea eax, [esp + 0x70]
mov ecx, esp
push eax
call fcn.0047b020
push esi
call fcn.0047ceb0
add esp, 0x50
jmp 0x47b774
push ebx
push esi
push edi
call fcn.0047b330
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0047b490
push 1
lea ecx, [esp + 0x2c]
call fcn.00401b60
add esi, 0x4c
add ebx, 0x4c
cmp esi, ebp
jne 0x47b722
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ebp, dword [esp + 0x80]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x74]
lea eax, [edi + 1]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea edx, [esi + esi*8]
lea eax, [esi + edx*2]
cmp esi, dword [ecx + 0xc]
lea eax, [ebx + eax*4]
mov dword [esp + 0x10], eax
jg 0x47b9d2
cmp esi, 7
mov ecx, ebx
jl 0x47b7ff
mov eax, 0x24924925
mul esi
mov edi, esi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 2
lea eax, [ecx + 0x214]
push 0
push eax
push ecx
mov dword [esp + 0x8c], eax
call fcn.0047c2f0
mov ecx, dword [esp + 0x8c]
add esp, 0xc
dec edi
jne 0x47b7d8
mov eax, dword [esp + 0x10]
push 0
push eax
push ecx
call fcn.0047c2f0
mov edi, 7
add esp, 0xc
cmp esi, edi
jle 0x47b90b
jmp 0x47b81e
mov ebx, dword [esp + 0x74]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [esp + 0x74]
push esi
push edi
mov dword [eax + 4], edx
mov eax, dword [esp + 0x18]
push ebp
push eax
push ecx
call fcn.0047c500
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [edi + edi]
lea edi, [ecx + ecx]
add esp, 0x14
cmp edi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x80], esi
jg 0x47b8a3
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*2]
shl edx, 2
mov dword [esp + 0x18], edx
jmp 0x47b86f
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
push ebx
add edx, ecx
push edx
push ecx
push ecx
push eax
mov dword [esp + 0x30], edx
call fcn.0047caf0
mov ecx, dword [esp + 0x94]
sub ecx, edi
add esp, 0x14
cmp ecx, edi
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
jge 0x47b86b
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x80], ecx
jg 0x47b8e9
cmp eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x80], ecx
je 0x47b903
sub ebx, eax
jmp 0x47b8c6
mov ecx, dword [esp + 0x80]
push ecx
add ecx, ebx
call fcn.0047b490
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
add eax, 0x4c
cmp eax, ecx
mov dword [esp + 0x80], eax
jne 0x47b8bf
jmp 0x47b903
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x14]
push ebx
push edx
lea ecx, [eax + ecx*4]
push ecx
push ecx
push eax
call fcn.0047caf0
add esp, 0x14
cmp edi, esi
jl 0x47b81a
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
sub edi, esi
cmp edi, 7
jl 0x47b94f
mov eax, 0x24924925
mul edi
mov ebx, edi
sub ebx, edx
shr ebx, 1
add ebx, edx
shr ebx, 2
lea eax, [ecx + 0x214]
push 0
push eax
push ecx
mov dword [esp + 0x88], eax
call fcn.0047c2f0
mov ecx, dword [esp + 0x88]
add esp, 0xc
dec ebx
jne 0x47b92c
mov eax, dword [esp + 0x78]
push 0
push eax
push ecx
call fcn.0047c2f0
mov ebx, 7
add esp, 0xc
cmp edi, ebx
jle 0x47b9b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x80], ecx
mov edx, dword [eax]
push ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x80]
push ebp
push eax
push ecx
call fcn.0047c500
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edi
add ebx, ebx
push ebx
lea ecx, [esp + 0x98]
push ecx
push edx
push eax
call fcn.0047c6c0
add ebx, ebx
add esp, 0x28
cmp ebx, edi
jl 0x47b968
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
push ebp
push edi
push esi
push eax
push ecx
push ebx
call fcn.0047be90
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push ebp
push esi
push eax
push ebx
call fcn.0047b6f0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x20]
push ebp
sub edi, esi
push edi
push ecx
push edx
call fcn.0047b6f0
add esp, 0x20
jmp 0x47b9b4