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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
imul eax, eax
push ebx
push ebp
push esi
push edi
cdq
mov ebx, eax
mov edi, edx
mov ecx, edi
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
imul eax, eax
cdq
mov ecx, eax
mov eax, edx
mov esi, eax
mov dword [esp + 0x70], ecx
shld esi, ecx, 1
mov dword [esp + 0x10], eax
add ecx, ecx
mov dword [esp + 0x30], esi
mov eax, ecx
mov dword [esp + 0x2c], ecx
mov edx, esi
shld edx, eax, 1
push esi
add eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
cdq
mov ebp, eax
mov eax, edx
push ecx
push eax
push ebp
mov dword [esp + 0x2c], eax
call fcn.0044d640
and dword [esp + 0x28], 0
mov ecx, eax
and dword [esp + 0x24], 0
mov esi, edx
shld esi, ecx, 1
mov dword [esp + 0x6c], esi
add ecx, ecx
mov esi, dword [esp + 0x10]
shrd dword [esp + 0x70], esi, 1
mov dword [esp + 0x14], ecx
sar esi, 1
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x70]
sub esi, eax
mov eax, dword [esp + 0x10]
sbb eax, edx
add esi, dword [esp + 0x34]
mov dword [esp + 0x70], esi
adc eax, dword [esp + 0x38]
shrd ebx, edi, 1
mov dword [esp + 0x10], eax
sar edi, 1
sub ebx, ecx
mov ecx, dword [esp + 0x60]
sbb edi, dword [esp + 0x6c]
add ebx, dword [esp + 0x2c]
adc edi, dword [esp + 0x30]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], esi
test byte [ecx + 0xd8], 4
mov dword [esp + 0x20], eax
je 0x4f831d
test edi, edi
jg 0x4f8220
jl 0x4f8107
test ebx, ebx
jae 0x4f8220
add esi, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
add eax, ebp
push esi
push eax
push ecx
mov dword [esp + 0x58], eax
call fcn.004f7294
mov eax, dword [esp + 0x70]
sub eax, ebp
push esi
push eax
push dword [esp + 0x74]
mov dword [esp + 0x68], eax
call fcn.004f7294
mov esi, dword [esp + 0x30]
add esp, 0x18
mov eax, esi
or eax, dword [esp + 0x20]
je 0x4f816c
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x18]
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.004f7294
push esi
push dword [esp + 0x60]
push dword [esp + 0x74]
call fcn.004f7294
mov esi, dword [esp + 0x30]
add esp, 0x18
mov edx, dword [esp + 0x28]
add esi, 1
mov eax, dword [esp + 0x24]
push 0
pop ecx
adc dword [esp + 0x20], ecx
add edx, dword [esp + 0x44]
mov dword [esp + 0x18], esi
adc eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], ecx
jg 0x4f81ba
jl 0x4f81a0
cmp dword [esp + 0x70], ecx
jae 0x4f81ba
mov ecx, edx
add ecx, dword [esp + 0x34]
adc eax, dword [esp + 0x38]
add dword [esp + 0x70], ecx
adc dword [esp + 0x10], eax
add ebx, edx
adc edi, dword [esp + 0x24]
jmp 0x4f8206
mov ecx, dword [esp + 0x3c]
add ebp, 0xffffffff
adc dword [esp + 0x1c], 0xffffffff
sub dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
sbb dword [esp + 0x6c], ecx
mov ecx, edx
sub ecx, dword [esp + 0x14]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x34]
adc eax, dword [esp + 0x38]
add dword [esp + 0x70], ecx
mov ecx, edx
adc dword [esp + 0x10], eax
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x2c]
adc eax, dword [esp + 0x30]
add ebx, ecx
adc edi, eax
mov ecx, dword [esp + 0x60]
test edi, edi
jl 0x4f8107
jg 0x4f821c
test ebx, ebx
jb 0x4f8107
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
add edx, esi
mov esi, dword [esp + 0x64]
push edx
add esi, ebp
mov dword [esp + 0x74], edx
push esi
push ecx
call fcn.004f7294
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x74]
mov dword [esp + 0x68], eax
call fcn.004f7294
mov eax, ebp
add esp, 0x18
or eax, dword [esp + 0x1c]
je 0x4f827f
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.004f7294
push dword [esp + 0x5c]
push esi
push dword [esp + 0x74]
call fcn.004f7294
add esp, 0x18
mov eax, dword [esp + 0x14]
add ebp, 0xffffffff
mov edx, dword [esp + 0x6c]
adc dword [esp + 0x1c], 0xffffffff
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
sbb edx, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
test edi, edi
jg 0x4f82e7
jl 0x4f82a9
test ebx, ebx
jae 0x4f82e7
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add esi, 1
mov edx, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add eax, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x28], eax
adc edx, dword [esp + 0x48]
sub ecx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x18], esi
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
adc eax, dword [esp + 0x30]
jmp 0x4f82f7
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x30]
sbb eax, edx
add ebx, ecx
mov ecx, dword [esp + 0x60]
adc edi, eax
cmp dword [esp + 0x1c], 0
jg 0x4f8220
jl 0x4f8571
test ebp, ebp
jae 0x4f8220
jmp 0x4f8571
test edi, edi
jg 0x4f8443
jl 0x4f832f
test ebx, ebx
jae 0x4f8443
mov eax, dword [esp + 0x1c]
mov edx, ebp
shld eax, edx, 1
add edx, edx
add edx, 1
push edx
adc eax, 0
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
sub eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
add eax, esi
push eax
push dword [esp + 0x20]
push ecx
call fcn.004f6daa
mov eax, esi
add esp, 0x10
or eax, dword [esp + 0x20]
je 0x4f838b
push dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
sub eax, esi
push eax
push dword [esp + 0x20]
push dword [esp + 0x6c]
call fcn.004f6daa
add esp, 0x10
mov edx, dword [esp + 0x28]
add esi, 1
mov eax, dword [esp + 0x24]
push 0
pop ecx
adc dword [esp + 0x20], ecx
add edx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
adc eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], ecx
jg 0x4f83d5
jl 0x4f83bb
cmp dword [esp + 0x70], ecx
jae 0x4f83d5
mov ecx, edx
add ecx, dword [esp + 0x34]
adc eax, dword [esp + 0x38]
add dword [esp + 0x70], ecx
adc dword [esp + 0x10], eax
add ebx, edx
adc edi, dword [esp + 0x24]
jmp 0x4f8421
mov ecx, dword [esp + 0x3c]
add ebp, 0xffffffff
adc dword [esp + 0x1c], 0xffffffff
sub dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
sbb dword [esp + 0x6c], ecx
mov ecx, edx
sub ecx, dword [esp + 0x14]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x34]
adc eax, dword [esp + 0x38]
add dword [esp + 0x70], ecx
mov ecx, edx
adc dword [esp + 0x10], eax
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x2c]
adc eax, dword [esp + 0x30]
add ebx, ecx
adc edi, eax
mov ecx, dword [esp + 0x60]
test edi, edi
jl 0x4f832f
jg 0x4f8437
test ebx, ebx
jb 0x4f832f
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x68]
add edx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], edx
mov edx, esi
mov esi, dword [esp + 0x64]
sub edx, dword [esp + 0x50]
sbb eax, dword [esp + 0x4c]
add edx, 1
push edx
push dword [esp + 0x3c]
adc eax, 0
mov dword [esp + 0x78], edx
add esi, ebp
mov dword [esp + 0x60], eax
push esi
push ecx
call fcn.004f76fa
push dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x2c]
push eax
push esi
push dword [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.004f76fa
mov eax, ebp
add esp, 0x20
or eax, dword [esp + 0x1c]
je 0x4f84d8
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x3c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.004f76fa
push dword [esp + 0x80]
push dword [esp + 0x48]
push esi
push dword [esp + 0x7c]
call fcn.004f76fa
add esp, 0x20
mov eax, dword [esp + 0x14]
add ebp, 0xffffffff
mov edx, dword [esp + 0x6c]
adc dword [esp + 0x1c], 0xffffffff
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
sbb edx, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
test edi, edi
jg 0x4f8540
jl 0x4f8502
test ebx, ebx
jae 0x4f8540
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add esi, 1
mov edx, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add eax, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x28], eax
adc edx, dword [esp + 0x48]
sub ecx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x18], esi
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
adc eax, dword [esp + 0x30]
jmp 0x4f8550
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x30]
sbb eax, edx
add ebx, ecx
mov ecx, dword [esp + 0x60]
adc edi, eax
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
jg 0x4f8455
jl 0x4f8571
test ebp, ebp
jae 0x4f8455
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14