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

Disassembly:
push 0x148
mov eax, 0xc5b36a0
call fcn.004822ed
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [esi]
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], esi
call fcn.00487ad2
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
lea edx, [ebp - 0xe0]
push edx
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [ecx + 0x20]
movzx ecx, word [ebp - 0xe0]
mov eax, dword [esi]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 0x10]
fld dword [eax + 8]
fild dword [ebp - 0x40]
fdivp st(1)
fstp dword [ebp - 0x9c]
cmp ecx, ebx
jne 0x47d15a
mov dword [ebp - 0x44], ebx
jmp 0x47d164
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0xcc]
push edx
push eax
mov byte [ebp - 0x2d], bl
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x47d189
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
cmp dword [ebp - 0xcc], 6
jne 0x47d1ae
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x51]
push eax
push edi
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x48]
call fcn.0047c743
test al, al
jne 0x47d1b2
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0xc8]
push edx
push eax
call dword [ecx + 0xa8]
cmp eax, ebx
jge 0x47d1d7
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
cmp byte [ebp - 0x2d], bl
je 0x47d2c1
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
push ecx
push 1
push eax
lea ecx, [ebp - 0x128]
call fcn.00477ffe
fld1
fst dword [ebp - 0xc0]
lea eax, [ebp - 0xc0]
fldz
push eax
fst dword [ebp - 0xbc]
mov ecx, edi
fstp dword [ebp - 0xb8]
mov byte [ebp - 4], 1
fstp dword [ebp - 0xb4]
fld dword [ebp - 0xc8]
fstp dword [ebp - 0xb0]
fld dword [ebp - 0xc4]
fstp dword [ebp - 0xac]
call fcn.0046f967
mov esi, dword [esi]
lea ecx, [esi + 0x2c]
call fcn.0046b550
test eax, eax
jne 0x47d24e
mov dword [ebp - 0x38], ebx
jmp 0x47d254
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x20]
fld dword [esi + 8]
mov edi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
lea edx, [ebp - 0x128]
push edx
mov edx, dword [esi + 0x40]
and edx, 1
push edx
xor edx, edx
cmp byte [esi + 0x3c], bl
setne dl
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push eax
push edi
push ecx
fstp dword [esp]
push dword [ebp - 0x6c]
call dword [ecx + 0x38]
cmp eax, ebx
jge 0x47d29b
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
mov ecx, dword [ebp - 0x58]
call fcn.0046f97a
push dword [ebp - 0x34]
lea ecx, [ebp - 0x128]
call fcn.0047f85e
lea ecx, [ebp - 0x128]
call fcn.00477f90
jmp 0x47d867
push ebx
push ebx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call fcn.0048cbe1
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0046cb88
mov ecx, dword [edi]
push eax
push 0xc582334
push edi
mov byte [ebp - 4], 3
call dword [ecx]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
call fcn.00485758
cmp dword [ebp - 0x3c], ebx
jge 0x47d327
push ebx
push 0xc5821a0
push dword [ebp - 0x3c]
call fcn.004829e3
cmp dword [ebp - 0x38], ebx
mov edi, 0xc5821a0
jge 0x47d33b
push ebx
push edi
push dword [ebp - 0x38]
call fcn.004829e3
push ebx
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
call fcn.0048cbe1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0046cb88
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x154]
push eax
push ecx
mov byte [ebp - 4], 5
call dword [edx + 0x1c]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
call fcn.00485758
cmp dword [ebp - 0x3c], ebx
jge 0x47d3a1
push ebx
push edi
push dword [ebp - 0x3c]
call fcn.004829e3
cmp dword [ebp - 0x38], ebx
jge 0x47d3b0
push ebx
push edi
push dword [ebp - 0x38]
call fcn.004829e3
mov edi, dword [ebp - 0x58]
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00478a11
mov eax, dword [ebp - 0x6c]
cmp byte [ebp - 0x51], bl
mov ecx, dword [eax]
push eax
sete byte [ebp - 0x2d]
call dword [ecx + 0x1c]
cmp eax, ebx
je 0x47d3e0
mov byte [ebp - 0x2d], bl
mov eax, dword [edi + 8]
cmp byte [eax + 0xce], bl
jne 0x47d412
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push eax
call dword [ecx + 0x7c]
cmp eax, ebx
jge 0x47d40a
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
cmp dword [ebp - 0x40], ebx
je 0x47d412
mov byte [ebp - 0x2d], bl
mov eax, dword [esi]
test byte [eax + 0x40], 1
mov ecx, dword [edi + 8]
je 0x47d428
or dword [ebp - 0x3c], 0xffffffff
mov byte [ebp - 0x2d], bl
push 0x1a
jmp 0x47d431
mov dword [ebp - 0x3c], 1
push 0x18
call fcn.00478aad
lea ecx, [ebp - 0x2c]
call fcn.0047954f
cmp byte [ebp - 0x2d], bl
je 0x47d4a7
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0047930f
mov ecx, dword [edi]
push eax
push edi
mov byte [ebp - 4], 8
call dword [ecx + 0x78]
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov edi, eax
mov byte [ebp - 4], 7
call fcn.00478c51
cmp edi, ebx
jge 0x47d484
push ebx
push 0xc5821a0
push edi
call fcn.004829e3
cmp dword [ebp - 0x34], ebx
je 0x47d496
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.0046ccb7
jmp 0x47d499
mov byte [ebp - 0x2d], bl
cmp dword [ebp - 0x34], ebx
je 0x47d4a7
push dword [ebp - 0x34]
call dword [0xc581234]
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov eax, dword [esi]
mov byte [ebp - 4], 9
mov dword [ebp - 0x48], ebx
cmp byte [eax + 0x3c], bl
je 0x47d555
push dword [ebp - 0x44]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 0x2d], bl
call fcn.0047d0b4
mov esi, dword [esi]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push 1
push dword [ebp - 0xb4]
push dword [ebp - 0x44]
push esi
push eax
call dword [ecx + 0x28]
cmp eax, ebx
jge 0x47d506
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [0xc581080]
test eax, eax
jne 0x47d54a
call dword [0xc58113c]
cmp eax, ebx
jle 0x47d537
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x47d53e
mov eax, 0x80004005
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
mov eax, dword [ebp - 0x10c]
neg eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xa
call fcn.0047ce40
xor edi, edi
cmp dword [ebp - 0x44], ebx
jbe 0x47d821
fild dword [ebp - 0x3c]
fstp dword [ebp - 0xa0]
lea eax, [edi + 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
mov esi, dword [eax]
lea ecx, [esi + 0x2c]
call fcn.0046b550
test eax, eax
je 0x47d5e1
mov eax, dword [esi + 0x30]
fld dword [eax + edi*8]
fmul dword [ebp - 0xa0]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x50]
mov eax, dword [esi + 0x30]
fld dword [ebp - 0x4c]
fsub dword [eax + edi*8 + 4]
fstp dword [ebp - 0x4c]
cmp byte [esi + 0x3c], bl
je 0x47d601
mov ecx, dword [ebp - 0xb4]
mov eax, edi
imul eax, eax, 0x1c
fild dword [eax + ecx + 0xc]
fmul dword [ebp - 0x9c]
fadd dword [ebp - 0x50]
fstp dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00475e83
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x74], eax
cmp dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x64]
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
fld dword [eax + edi*4]
fmul dword [ebp - 0xa0]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x60]
jne 0x47d730
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x34], eax
jae 0x47d730
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xb4]
imul eax, eax, 0x1c
lea eax, [eax + ecx + 0xc]
mov dword [ebp - 0x38], eax
lea ecx, [esi + 0x2c]
call fcn.0046b550
test eax, eax
je 0x47d687
mov eax, dword [esi + 0x30]
fld dword [eax + edi*8 + 4]
mov ecx, dword [ebp - 0x34]
fld dword [eax + ecx*8 + 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x47d730
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.0046b550
test eax, eax
je 0x47d6be
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp - 0x34]
shl eax, 3
fld dword [ecx + eax]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x50]
mov ecx, dword [esi + 0x30]
fld dword [ebp - 0x4c]
fsub dword [ecx + eax + 4]
fstp dword [ebp - 0x4c]
cmp byte [esi + 0x3c], bl
je 0x47d6d4
mov eax, dword [ebp - 0x38]
fild dword [eax]
fmul dword [ebp - 0x9c]
fadd dword [ebp - 0x50]
fstp dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00475e83
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], eax
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00480bb5
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x38], 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
mov esi, dword [eax]
mov eax, dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
fld dword [ecx + eax*4]
inc eax
fadd dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
fstp dword [ebp - 0x60]
cmp eax, dword [ebp - 0x44]
jb 0x47d660
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
cmp edx, ebx
je 0x47d769
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, ebx
je 0x47d769
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x40], ebx
call fcn.00480bb5
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
cmp byte [ebp - 0x2d], bl
je 0x47d7a2
cmp edx, ebx
je 0x47d77b
sub eax, edx
sar eax, 2
cmp eax, ebx
jne 0x47d77d
xor edx, edx
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x1c]
mov eax, dword [ebp - 0x34]
push edx
sub eax, edi
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0047cc22
push eax
push ebx
push ebx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push esi
jmp 0x47d7d7
cmp edx, ebx
je 0x47d7af
sub eax, edx
sar eax, 2
cmp eax, ebx
jne 0x47d7b1
xor edx, edx
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [ebp - 0x34]
lea ecx, [eax + edi*2]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
sub edx, edi
push edx
push ecx
push ebx
push 0x10
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push eax
call dword [0xc581084]
test eax, eax
jne 0x47d80a
call dword [0xc58113c]
cmp eax, ebx
jle 0x47d7f7
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x47d7fe
mov eax, 0x80004005
push ebx
push 0xc5821a0
push eax
call fcn.004829e3
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x90]
call fcn.0047cddd
cmp edi, dword [ebp - 0x44]
jb 0x47d59f
lea ecx, [ebp - 0x90]
call fcn.0048b770
lea ecx, [ebp - 0xb8]
call fcn.0048b770
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0046c0f6
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x47d855
call fcn.0046bae2
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x47d867
call fcn.0046bae2
mov ecx, dword [ebp - 0x68]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x47d877
call fcn.0046bae2
call fcn.0048237f
ret 0xc