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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [esi]
mov eax, dword [eax + 0x64]
call eax
test al, al
je 0x47b4f2
cmp byte [ebp + 0x10], 0
je 0x47b1be
mov ecx, esi
call fcn.0047c9a0
mov eax, dword [esi]
mov ecx, esi
mov byte [esp + 0x13], 0
call dword [eax + 0x28]
cmp eax, 1
je 0x47b23a
cmp eax, 4
je 0x47b23a
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], edi
call dword [eax + 0x28]
cmp eax, 3
je 0x47b1ed
cmp eax, 6
je 0x47b1ed
xor ebx, ebx
jmp 0x47b1f2
mov ebx, 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, 1
je 0x47b208
mov ecx, 2
cmp eax, 4
jne 0x47b20d
mov ecx, 1
test bl, bl
je 0x47b217
cmp ecx, 1
jbe 0x47b217
inc edi
lea eax, [edi - 1]
cdq
idiv ecx
sub edi, edx
test bl, bl
je 0x47b22e
cmp ecx, 1
jbe 0x47b22e
cmp edi, 1
jle 0x47b22e
dec edi
mov eax, dword [esp + 0x1c]
dec eax
cmp edi, eax
sete byte [esp + 0x13]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
fld qword [0x55ddf0]
cmp eax, 4
je 0x47b262
cmp eax, 5
je 0x47b262
cmp eax, 6
je 0x47b262
push edi
mov ecx, esi
fstp st(0)
call fcn.0047a590
jmp 0x47b2e0
fld dword [esi + 0x74]
fucompp
fnstsw ax
test ah, 0x44
jp 0x47b2e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x47b2cf
imul eax, ebx, 0x68
fld1
fldz
mov dword [esp + 0x18], eax
cmp ebx, edi
jne 0x47b28e
fstp st(0)
jmp 0x47b290
fstp st(1)
mov eax, dword [esi]
mov ecx, esi
push ebx
fstp dword [esp + 0x20]
mov eax, dword [eax + 0x64]
call eax
test al, al
jne 0x47b2a6
xor eax, eax
jmp 0x47b2b6
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x47b2b6
mov ecx, dword [esp + 0x18]
add eax, 0xffffff98
add eax, ecx
fld dword [esp + 0x1c]
dec ebx
sub dword [esp + 0x18], 0x68
fstp dword [eax + 0x54]
fld1
fldz
test ebx, ebx
jg 0x47b286
fstp st(1)
fstp st(0)
push dword [esi + 0x78]
fld dword [esi + 0x74]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.0047a050
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x64]
call eax
test al, al
jne 0x47b2f2
xor ebx, ebx
jmp 0x47b305
mov ecx, dword [esi + 0x2c]
test ecx, ecx
jne 0x47b2fd
xor ebx, ebx
jmp 0x47b305
imul eax, edi, 0x68
lea ebx, [ecx - 0x68]
add ebx, eax
fld dword [esi + 0x74]
fld qword [0x55ddf0]
fucompp
mov dword [esp + 0x18], ebx
fnstsw ax
test ah, 0x44
jp 0x47b40e
push edi
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0047b100
mov eax, dword [esi]
mov ecx, esi
mov ebx, dword [esp + 0x2c]
call dword [eax + 0x28]
cmp eax, 1
je 0x47b3f7
cmp eax, 4
je 0x47b3f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, 3
je 0x47b362
mov dword [esp + 0x1c], 0
cmp eax, 6
jne 0x47b36a
mov dword [esp + 0x1c], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, 1
je 0x47b383
mov dword [esp + 0x14], 2
cmp eax, 4
jne 0x47b38b
mov dword [esp + 0x14], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp byte [esp + 0x1c], 0
mov ecx, edi
mov dword [esp + 0x20], eax
je 0x47b3a9
cmp dword [esp + 0x14], 1
jbe 0x47b3a9
lea ecx, [edi + 1]
lea eax, [ecx - 1]
cdq
idiv dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x1c]
test dl, dl
je 0x47b3ca
cmp eax, 1
jbe 0x47b3ca
cmp ecx, 1
jle 0x47b3ca
dec ecx
dec ecx
add ecx, eax
test dl, dl
je 0x47b3d6
cmp edi, eax
jge 0x47b3d6
dec ecx
mov eax, dword [esp + 0x20]
cmp eax, ecx
jl 0x47b3e0
mov eax, ecx
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0047b100
mov eax, dword [esp + 0x24]
cmp eax, ebx
jge 0x47b3f7
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x44]
sub eax, dword [esi + 0x64]
add eax, dword [esp + 0x28]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x28]
jmp 0x47b420
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x47b434
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
je 0x47b468
cmp byte [esp + 0x13], 0
je 0x47b468
mov eax, dword [ecx + 0x4c]
add dword [esi + 0x40], eax
jmp 0x47b468
cmp edi, 1
jne 0x47b455
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, 3
je 0x47b44a
cmp eax, 6
jne 0x47b455
mov eax, dword [ebx + 0x44]
sub eax, dword [esi + 0x64]
mov dword [esi + 0x40], eax
jmp 0x47b465
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x44]
add eax, ecx
cmp dword [esi + 0x40], eax
jl 0x47b465
mov dword [esi + 0x40], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x44], ebx
call dword [eax + 0x28]
cmp eax, 4
je 0x47b481
cmp eax, 5
je 0x47b481
cmp eax, 6
jne 0x47b490
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x48]
sub eax, dword [esi + 0x58]
add eax, ebx
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x40]
test ecx, ecx
jns 0x47b4a1
xor eax, eax
jmp 0x47b4a7
cmp ecx, eax
jg 0x47b4a7
mov eax, ecx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x4c]
test ecx, ecx
jns 0x47b4bb
xor eax, eax
jmp 0x47b4c1
cmp ecx, eax
jg 0x47b4c1
mov eax, ecx
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.0047a680
mov ecx, esi
call fcn.0047ade0
mov ecx, dword [esi + 4]
push dword [esi + 0x3c]
push dword [esi + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 4]
push edi
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10