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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
lea eax, [esp + 0x10]
push esi
push edi
push 0
push eax
push 0x20
push ebp
mov dword [esp + 0x28], 0
call fcn.004fbb80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4f3e82
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
add ecx, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
adc eax, edi
mov edi, dword [esp + 0x18]
push eax
push ecx
push 1
push edi
call fcn.004d1b80
mov eax, dword [esp + 0x90]
cdq
push edx
push eax
push 2
push edi
call fcn.004d1b80
push edi
call fcn.004d4190
add esp, 0x24
cmp eax, 0x64
jne 0x4f3ea6
push 1
push edi
call fcn.004d4c70
push 2
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
call fcn.004d4c70
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x20], edx
lea esi, [ebx + 0x28]
push esi
push eax
push 3
push edi
call fcn.004f8950
mov eax, dword [esi + 4]
add esp, 0x20
mov ecx, dword [esi]
test eax, eax
jg 0x4f3ad0
jl 0x4f3ac4
test ecx, ecx
jae 0x4f3ad0
neg ecx
mov dword [esi], ecx
adc eax, 0
neg eax
mov dword [esi + 4], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4f3ade
mov eax, 1
jmp 0x4f3ae0
xor eax, eax
push 4
push edi
mov byte [ebx + 0x30], al
call fcn.004d52c0
mov esi, eax
push 4
push edi
mov dword [esp + 0x3c], esi
call fcn.004d44b0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4f3b25
push edi
call fcn.004d5880
add esp, 4
neg esi
sbb esi, esi
and esi, 0xfffffefc
pop edi
lea eax, [esi + 0x10b]
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebp
call fcn.004f6000
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4f3e6f
cmp dword [esp + 0x14], eax
je 0x4f3e6f
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x38]
push ebp
call fcn.0052f220
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4f3bfb
push dword [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005087d0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4f3bbe
lea ecx, [ecx]
cmp dword [esp + 0x40], 0
je 0x4f3bbe
lea eax, [esp + 0x40]
push eax
call fcn.00508830
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x4f3ba0
push dword [esp + 0x5c]
mov esi, dword [esp + 0x5c]
push esi
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.004fbf80
mov ebp, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
push esi
setle cl
dec ecx
and ebp, ecx
call fcn.004ca170
mov esi, dword [esp + 0x40]
add esp, 0x14
mov eax, dword [esp + 0x1c]
jmp 0x4f3bff
mov ebp, dword [esp + 0x14]
push eax
call fcn.004ca170
add esp, 4
test edi, edi
jne 0x4f3e6f
test ebp, ebp
je 0x4f3e6f
mov eax, dword [esp + 0x24]
movsx ebp, byte [eax]
lea eax, [ebp - 1]
cmp eax, 0xe
ja 0x4f3e8c
mov ecx, dword [esp + 0x38]
mov eax, ecx
mov edi, dword [esp + 0x30]
sub eax, edi
inc eax
mov dword [ebx + 0x20], ecx
cdq
lea ecx, [ebp + 1]
and edx, 0xf
mov dword [ebx + 0x18], edi
add eax, edx
sar eax, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x10], eax
cmp ecx, 0x10
jge 0x4f3c9c
mov eax, ecx
lea edi, [ebx + 0x38]
shl eax, 5
add edi, eax
mov eax, dword [ebx]
lea edi, [edi + 0x20]
imul eax, ecx
cdq
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
inc ecx
mov dword [edi - 0x20], eax
mov dword [edi - 0x1c], edx
cmp ecx, 0x10
jl 0x4f3c81
mov eax, ebp
lea ecx, [ebx + 0x38]
shl eax, 5
add ecx, eax
mov eax, dword [ebx]
imul eax, ebp
mov dword [esp + 0x34], ecx
cdq
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 4], edx
mov eax, dword [eax + 0xe8]
cmp esi, eax
jle 0x4f3ccb
mov eax, esi
lea edx, [esp + 0x10]
add eax, 0x14
push edx
add ecx, 0x14
push eax
push ecx
mov dword [esp + 0x2c], ecx
call fcn.004dd4a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
jne 0x4f3d1e
mov eax, dword [esp + 0x20]
push esi
push dword [esp + 0x28]
push dword [eax]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x40]
xor ecx, ecx
add esp, 0xc
mov dword [eax + 0x18], esi
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
add eax, esi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
test ebp, ebp
js 0x4f3e6f
lea esi, [ebp + 2]
shl esi, 5
add esi, ebx
mov edi, edi
test edi, edi
jne 0x4f3e6f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4f3e59
push dword [esi + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005087d0
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [esp + 0x40], edi
je 0x4f3d7c
mov edi, edi
test eax, eax
jne 0x4f3d7c
lea eax, [esp + 0x40]
push eax
call fcn.00508830
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [esp + 0x40], 0
jne 0x4f3d60
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call fcn.004dd4a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
jne 0x4f3e59
test ebx, ebx
jle 0x4f3dae
push ebx
push dword [esp + 0x5c]
push dword [esi]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esi + 4], ebx
test ebp, ebp
jle 0x4f3e59
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
push 0
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x3c], 0
mov dword [esi - 0x28], ecx
mov dword [esi - 0x24], eax
call fcn.0052f220
mov dword [esp + 0x28], eax
add esp, 0x18
mov eax, dword [ebx + 0xe8]
mov ebx, dword [esp + 0x24]
cmp ebx, eax
jle 0x4f3e06
mov eax, ebx
lea edx, [esp + 0x10]
add eax, 0x14
push edx
lea ecx, [esi - 0x14]
push eax
push ecx
call fcn.004dd4a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
test edi, edi
jne 0x4f3e50
push ebx
push eax
push dword [esi - 0x14]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi - 0x14]
xor ecx, ecx
add esp, 0xc
mov dword [esi - 0x10], ebx
add eax, ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004ca170
add esp, 4
push dword [esp + 0x58]
call fcn.004ca170
add esp, 4
sub esi, 0x20
dec ebp
jns 0x4f3d30
mov eax, dword [esp + 0x18]
push eax
call fcn.004d5880
add esp, 4
test edi, edi
jne 0x4f3e82
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.004d5880
add esp, 4
mov eax, 0x10b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push edi
call fcn.004d5880
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret