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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x58], 2
jl 0x47a95d
cmp dword [edi + 4], esi
je 0x47a95d
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
jle 0x47a95d
xor ebx, ebx
mov dword [esp + 0x4c], esi
cmp eax, esi
jle 0x47a957
push esi
push edi
call fcn.0047a3d0
add esp, 8
add ebx, eax
adc dword [esp + 0x4c], edx
inc esi
cmp esi, dword [edi + 0x34]
jl 0x47a941
mov edx, dword [esp + 0x4c]
jmp 0x47a965
or edx, 0xffffffff
mov ebx, 0xffffff7d
cmp dword [edi + 0x58], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
jl 0x47b17e
cmp dword [edi + 4], 0
jne 0x47a989
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jl 0x47b17e
mov eax, dword [ebp + 0xc]
jg 0x47a9a1
test eax, eax
jb 0x47b17e
cmp ecx, edx
jg 0x47b17e
jl 0x47a9b3
cmp eax, ebx
ja 0x47b17e
mov ecx, dword [edi + 0x34]
dec ecx
mov dword [esp + 0x44], ecx
js 0x47a9eb
mov esi, dword [edi + 0x44]
mov eax, ecx
add eax, eax
lea eax, [esi + eax*8 + 8]
sub ebx, dword [eax]
sbb edx, dword [eax + 4]
cmp dword [ebp + 0x10], edx
jg 0x47a9df
jl 0x47a9d9
cmp dword [ebp + 0xc], ebx
jae 0x47a9df
sub eax, 0x10
dec ecx
jns 0x47a9c8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
mov edx, dword [edi + 0x38]
mov esi, dword [edx + ecx*8 + 4]
lea eax, [edx + ecx*8]
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
shl ecx, 4
mov dword [esp + 0x2c], edx
mov edx, dword [eax]
mov eax, dword [edi + 0x44]
mov ebx, dword [eax + ecx + 8]
add eax, ecx
mov ecx, dword [eax]
add ebx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
adc eax, edx
mov dword [esp + 0x4c], eax
mov eax, ecx
sub eax, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
mov eax, edx
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
adc eax, dword [ebp + 0x10]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x2c]
jg 0x47aed6
jl 0x47aa81
cmp eax, dword [esp + 0x28]
jae 0x47aed6
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
sbb eax, esi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], eax
test eax, eax
jg 0x47aab5
jl 0x47aaab
cmp ebx, 0x10000
jae 0x47aab5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x47ab33
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
sub eax, ecx
sbb ebx, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x7c], ebx
fild qword [esp + 0x78]
sbb ecx, edx
fild qword [esp + 0x88]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
fmulp st(1)
fild qword [esp + 0x90]
fdivp st(1)
call fcn.005c6e36
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ebx, edx
adc ebx, esi
sub eax, 0x10000
sbb ebx, 0
mov dword [esp + 0x20], eax
add ecx, 0x10000
mov eax, esi
adc eax, 0
cmp ebx, eax
jg 0x47ab35
jl 0x47ab2b
cmp dword [esp + 0x20], ecx
jae 0x47ab35
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov ebx, esi
mov eax, dword [esp + 0x20]
cmp eax, dword [edi + 8]
jne 0x47ab43
cmp ebx, dword [edi + 0xc]
je 0x47aba5
mov ecx, dword [edi]
test ecx, ecx
je 0x47ab8f
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x47ab88
mov edx, dword [esp + 0x20]
push 0
push ebx
push edx
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x47ab88
mov eax, dword [esp + 0x20]
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x1c], eax
jl 0x47ab94
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jmp 0x47ab94
mov eax, 0xffffff80
jmp 0x47ab94
mov eax, 0xffffff7f
cdq
mov dword [esp + 0x10], eax
or eax, edx
jne 0x47b145
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [edi + 8]
mov edx, dword [esp + 0x2c]
sbb edx, dword [edi + 0xc]
lea eax, [esp + 0x50]
push edx
push ecx
push eax
call fcn.00478b50
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, 0xffffff80
jne 0x47abdc
cmp edx, 0xffffffff
je 0x47b145
mov esi, dword [esp + 0x1c]
test edx, edx
jg 0x47ac9c
jl 0x47abf1
cmp dword [esp + 0x10], 0
jae 0x47ac9c
mov ecx, dword [esp + 0x18]
add ecx, 1
mov eax, esi
adc eax, 0
cmp ebx, eax
jl 0x47aed6
jg 0x47ac11
cmp dword [esp + 0x20], ecx
jbe 0x47aed6
mov edx, dword [esp + 0x20]
or edx, ebx
je 0x47b145
mov esi, dword [esp + 0x20]
add esi, 0xffff0000
adc ebx, 0xffffffff
mov dword [esp + 0x20], esi
cmp ebx, dword [esp + 0x1c]
jg 0x47ac44
jl 0x47ac3c
cmp esi, dword [esp + 0x18]
ja 0x47ac44
mov esi, ecx
mov dword [esp + 0x20], esi
mov ebx, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x47ac92
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x47ac88
push 0
push ebx
push esi
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x47ac88
xor eax, eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x1c], eax
jl 0x47ae6d
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jmp 0x47ae6d
mov eax, 0xffffff80
jmp 0x47ae6d
mov eax, 0xffffff7f
jmp 0x47ae6d
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax + 0x11]
movzx edx, byte [eax + 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xf]
movzx eax, byte [eax + 0xe]
shl ecx, 8
or ecx, edx
mov edx, dword [edi + 0x40]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x44]
cmp ecx, dword [edx + eax*4]
jne 0x47ae7e
mov ecx, dword [esp + 0x50]
movzx eax, byte [ecx + 0xd]
cdq
shld edx, eax, 8
shl eax, 8
mov esi, eax
movzx eax, byte [ecx + 0xc]
mov ecx, edx
cdq
or esi, eax
or ecx, edx
mov edx, dword [esp + 0x50]
movzx eax, byte [edx + 0xb]
shld ecx, esi, 8
cdq
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x50]
movzx eax, byte [eax + 0xa]
or ecx, edx
shld ecx, esi, 8
cdq
or ecx, edx
mov edx, dword [esp + 0x50]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 9]
shld ecx, esi, 8
cdq
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x50]
movzx eax, byte [eax + 8]
or ecx, edx
shld ecx, esi, 8
cdq
or ecx, edx
mov edx, dword [esp + 0x50]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 7]
shld ecx, esi, 8
cdq
shl esi, 8
or eax, esi
or ecx, edx
mov edx, dword [esp + 0x50]
mov esi, ecx
shld esi, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [edx + 6]
cdq
or ecx, eax
or esi, edx
mov eax, ecx
and eax, esi
mov dword [esp + 0x84], esi
cmp eax, 0xffffffff
je 0x47ae7a
cmp esi, dword [esp + 0x64]
jg 0x47ade8
jl 0x47ad8a
cmp ecx, dword [esp + 0x60]
jae 0x47ade8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x84]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
sub edx, ecx
sbb eax, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ebx
test eax, eax
jg 0x47aeb8
jl 0x47add9
cmp edx, 0xac44
ja 0x47aeb8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ebx, esi
jmp 0x47ae7e
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edx, 1
mov eax, esi
adc eax, 0
mov dword [esp + 0x98], edx
cmp ebx, eax
jl 0x47aed6
jg 0x47ae13
cmp dword [esp + 0x20], edx
jbe 0x47aed6
mov edx, dword [esp + 0x28]
cmp edx, dword [edi + 8]
jne 0x47ae99
mov edx, dword [esp + 0x2c]
cmp edx, dword [edi + 0xc]
jne 0x47ae99
add dword [esp + 0x20], 0xffff0000
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
adc ebx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp ebx, esi
jg 0x47ae5d
jl 0x47ae50
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
ja 0x47ae5d
mov edx, dword [esp + 0x98]
mov dword [esp + 0x20], edx
mov ebx, eax
mov eax, dword [esp + 0x20]
push ebx
push eax
mov esi, edi
call fcn.00478af0
add esp, 8
cdq
mov dword [esp + 0x10], eax
or eax, edx
jne 0x47b145
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
jg 0x47aed6
jl 0x47aba5
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x18], ecx
jae 0x47aed6
jmp 0x47aba5
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x6c]
cmp esi, dword [esp + 0x2c]
jl 0x47aa81
jg 0x47aed6
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
jb 0x47aa81
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov esi, edi
call fcn.00478af0
cdq
or ecx, 0xffffffff
add esp, 8
mov dword [esp + 0x10], eax
or eax, edx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x54], ecx
jne 0x47b145
push ecx
push ecx
lea eax, [esp + 0x58]
push eax
call fcn.00478b50
add esp, 0xc
mov dword [esp + 0x10], eax
test edx, edx
jl 0x47b145
jg 0x47af25
test eax, eax
jb 0x47b145
mov ebx, dword [esp + 0x44]
cmp ebx, dword [edi + 0x60]
je 0x47af48
call fcn.00479cb0
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x60], ebx
mov edx, dword [ecx + ebx*4]
mov dword [edi + 0x5c], edx
mov dword [edi + 0x58], 3
jmp 0x47af53
lea eax, [edi + 0x1e0]
call fcn.004c6300
mov eax, dword [edi + 0x5c]
lea ebx, [edi + 0x78]
push eax
mov edx, ebx
call fcn.0047c800
add esp, 4
lea eax, [esp + 0x50]
mov esi, ebx
call fcn.0047c4a0
nop
test ebx, ebx
je 0x47af79
cmp dword [ebx], 0
jne 0x47af7d
xor eax, eax
jmp 0x47af90
push 0
lea esi, [esp + 0xa4]
mov eax, ebx
call fcn.0047c830
add esp, 4
cdq
mov ecx, eax
or ecx, edx
je 0x47afdd
test edx, edx
jl 0x47b0ba
jg 0x47afa9
test eax, eax
jb 0x47b0ba
mov esi, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov eax, esi
and eax, edx
cmp eax, 0xffffffff
jne 0x47b0c7
test ebx, ebx
je 0x47af79
cmp dword [ebx], 0
je 0x47af70
push 1
xor esi, esi
mov eax, ebx
call fcn.0047c830
add esp, 4
jmp 0x47af70
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov esi, edi
call fcn.00478af0
cdq
add esp, 8
mov dword [esp + 0x10], eax
test edx, edx
jl 0x47b145
jg 0x47b008
test eax, eax
jb 0x47b145
lea eax, [esp + 0x50]
push eax
mov eax, edi
call fcn.00478c00
mov esi, edx
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], ebx
test esi, esi
jl 0x47b145
jg 0x47b031
test ebx, ebx
jb 0x47b145
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax + 0x11]
movzx edx, byte [eax + 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xf]
movzx eax, byte [eax + 0xe]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
cmp ecx, dword [edi + 0x5c]
jne 0x47b078
lea eax, [esp + 0x50]
call fcn.0047bff0
cmp edx, 0xffffffff
jg 0x47b0a4
jl 0x47b06e
cmp eax, 0xffffffff
ja 0x47b0a4
mov ecx, dword [esp + 0x50]
test byte [ecx + 5], 1
je 0x47b0a4
lea edx, [esp + 0x50]
push edx
mov eax, edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
call fcn.00478c00
mov esi, edx
add esp, 4
mov ebx, eax
test esi, esi
jg 0x47b031
jl 0x47b09b
test ebx, ebx
jae 0x47b031
mov dword [esp + 0x10], ebx
jmp 0x47b145
push esi
push ebx
push edi
mov dword [esp + 0x1c], ebx
call fcn.0047a4d0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xffffff78
jmp 0x47b13d
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x44]
add eax, eax
sub esi, dword [ecx + eax*8]
sbb edx, dword [ecx + eax*8 + 4]
xor eax, eax
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], edx
cmp edx, eax
jg 0x47b0ee
jl 0x47b0e8
cmp esi, eax
jae 0x47b0ee
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x30]
add dword [edi + 0x50], eax
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 0x10]
adc dword [edi + 0x54], ecx
cmp dword [edi + 0x54], esi
jg 0x47b135
jl 0x47b10e
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 0xc]
ja 0x47b135
push 0xffffffffffffffff
push edi
call fcn.0047a3d0
add esp, 8
cmp esi, edx
jg 0x47b135
jl 0x47b124
cmp dword [ebp + 0xc], eax
ja 0x47b135
fldz
xor eax, eax
fst qword [edi + 0x68]
fstp qword [edi + 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xffffff7f
mov dword [esp + 0x14], 0xffffffff
or eax, 0xffffffff
lea ecx, [edi + 0x1e0]
push ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
call fcn.004c6360
lea edx, [edi + 0x250]
add esp, 4
push edx
call fcn.004c6780
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x58], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff7d
pop ebx
mov esp, ebp
pop ebp
ret