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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x50], edi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
call fcn.004f9000
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebx
call fcn.004fd4e0
mov ecx, dword [esi + 0x50]
mov edx, eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x4ff803
call fcn.004f89e0
mov edx, dword [esp + 0x24]
mov dword [esi + 0x50], edi
test edx, edx
je 0x4ffd1a
mov eax, dword [esi]
push edx
lea edx, [esp + 0x64]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.004fe5b0
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x24]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x34], ebx
test eax, eax
jne 0x4ffc91
push eax
xor edx, edx
mov ecx, edi
call fcn.004f81c0
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4ffc91
nop word [eax + eax]
mov edi, dword [edi + 0x10]
test edi, edi
je 0x4ffc91
lea ebx, [edi + 0x28]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ff873
sub esi, ecx
mov edx, edi
mov ecx, dword [esp + 0x18]
push 0
call fcn.004f7700
lea eax, [ebx + 1]
mov ecx, ebx
add eax, esi
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x10]
sub eax, esi
lea edx, [ecx + 1]
sub eax, 0x29
mov dword [esp + 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ff8a6
mov esi, dword [esp + 0xc]
sub ecx, edx
push ebx
push ecx
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.004fdf90
mov ebx, dword [esp + 0x3c]
add esp, 8
cmp dword [ebx], 0
jne 0x4ffc91
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
inc eax
mov edx, dword [esp + 0x20]
add eax, edi
add eax, edx
cmp dword [esp + 0x1c], eax
jl 0x4ff90a
mov eax, dword [esp + 0x6c]
push edx
push dword [esp + 0x30]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
add edi, dword [esp + 0x20]
mov dword [esp + 0x70], edi
jmp 0x4ffc77
xorps xmm0, xmm0
xor esi, esi
movlpd qword [esp + 0x48], xmm0
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x28], ecx
nop dword [eax]
cmp esi, edx
jge 0x4ffc6f
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x58]
lea ecx, [esi + ecx]
call fcn.0050e440
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movzx eax, al
add esi, eax
add ebx, ecx
mov dword [esp + 0x30], esi
adc dword [esp + 0x28], edx
cmp byte [esp + 0x99], 0
mov dword [esp + 0x48], ebx
je 0x4ffa11
mov ecx, dword [esp + 0x6c]
mov eax, edi
shr eax, 8
mov byte [ecx], al
lea edx, [ecx + edi]
mov al, byte [esp + 0x70]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x28]
test eax, eax
ja 0x4ff9c9
jb 0x4ff995
cmp ebx, 0x7f
ja 0x4ff9a2
mov al, bl
and al, 0x7f
mov byte [edx], al
mov eax, 1
jmp 0x4ff9d5
test eax, eax
ja 0x4ff9c9
jb 0x4ff9b0
cmp ebx, 0x3fff
ja 0x4ff9c9
mov ecx, ebx
shrd ecx, eax, 7
mov al, bl
or cl, 0x80
and al, 0x7f
mov byte [edx + 1], al
mov eax, 2
mov byte [edx], cl
jmp 0x4ff9d5
push eax
push ebx
mov ecx, edx
call fcn.0050e5e0
add esp, 8
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x10]
add edi, eax
push ebx
mov dword [esp + 0x78], edi
mov byte [esp + 0xa1], 0
call fcn.004fdb20
mov ebx, dword [esp + 0x3c]
add esp, 8
mov eax, dword [ebx]
test eax, eax
jne 0x4ffc73
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
jmp 0x4ffa6a
mov ebx, dword [esp + 0x6c]
lea esi, [ebx + edi]
test edx, edx
ja 0x4ffa54
jb 0x4ffa23
cmp ecx, 0x7f
ja 0x4ffa2f
and cl, 0x7f
mov eax, 1
mov byte [esi], cl
jmp 0x4ffa60
test edx, edx
ja 0x4ffa54
jb 0x4ffa3d
cmp ecx, 0x3fff
ja 0x4ffa54
mov eax, ecx
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [esi], al
mov eax, 2
mov byte [esi + 1], cl
jmp 0x4ffa60
push edx
push ecx
mov ecx, esi
call fcn.0050e5e0
add esp, 8
mov esi, dword [esp + 0x30]
add edi, eax
mov dword [esp + 0x70], edi
cmp dword [esp + 0x54], 1
jne 0x4ffac9
mov edx, dword [esp + 0x20]
cmp esi, edx
jge 0x4ffaa1
mov eax, dword [esp + 0x2c]
cmp byte [esi + eax], 0
jne 0x4ffaa1
mov byte [ebx + edi], 0
inc esi
inc edi
mov dword [esp + 0x70], edi
cmp esi, edx
jge 0x4ffaa1
cmp byte [esi + eax], 0
jne 0x4ffaa1
mov byte [ebx + edi], 0
inc edi
mov dword [esp + 0x70], edi
inc esi
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0xc]
add eax, edi
cmp eax, dword [esp + 0x1c]
jl 0x4ffc60
lea edx, [esp + 0x60]
mov ecx, ebx
call fcn.004fde60
mov edi, dword [esp + 0x70]
jmp 0x4ffc5c
add esi, dword [esp + 0x2c]
mov ecx, 1
mov dword [esp + 0x3c], esi
movzx eax, byte [esi]
mov dword [esp + 0x14], eax
test al, al
jns 0x4ffaf2
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.0050e3b0
mov ecx, eax
mov eax, dword [esp + 0x14]
mov eax, eax
test eax, eax
jns 0x4ffafb
add eax, 1
sar eax, 1
mov edx, dword [esp + 0x7c]
lea esi, [eax + ecx]
mov dword [esp + 0x44], esi
lea eax, [edi + edx]
add eax, esi
cmp eax, dword [esp + 0x1c]
jg 0x4ffb33
push esi
push dword [esp + 0x40]
lea eax, [ebx + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [esp + 0x18]
add esp, 0xc
add edi, esi
mov dword [esp + 0x70], edi
jmp 0x4ffc54
mov ebx, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebx + 0x24], ecx
jne 0x4ffc54
mov ebx, dword [esp + 0x1c]
sub esi, ecx
sub ebx, edi
sub ebx, edx
cmp esi, ebx
jle 0x4ffbf0
mov edx, dword [esp + 0x3c]
cmp byte [ecx + edx], 0
lea eax, [ecx + edx]
mov dword [esp + 0x40], eax
jl 0x4ffb70
mov esi, 1
jmp 0x4ffb9b
add ecx, edx
cmp byte [ecx + 1], 0
jl 0x4ffb7f
mov esi, 2
jmp 0x4ffb9b
cmp byte [ecx + 2], 0
jl 0x4ffb8c
mov esi, 3
jmp 0x4ffb9b
lea edx, [esp + 0xc0]
call fcn.0050e440
movzx esi, al
cmp esi, ebx
jge 0x4ffbec
mov edi, dword [esp + 0x40]
cmp byte [esi + edi], 0
lea eax, [esi + edi]
jl 0x4ffbb3
mov eax, 1
jmp 0x4ffbde
cmp byte [eax + 1], 0
jl 0x4ffbc0
mov eax, 2
jmp 0x4ffbde
cmp byte [eax + 2], 0
jl 0x4ffbcd
mov eax, 3
jmp 0x4ffbde
lea ecx, [eax]
lea edx, [esp + 0xc0]
call fcn.0050e440
movzx eax, al
add eax, esi
cmp eax, ebx
jg 0x4ffbe8
mov esi, eax
jmp 0x4ffba3
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add eax, ecx
push esi
push eax
mov eax, dword [esp + 0x74]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x88]
add edi, esi
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [esp + 0xc]
add ecx, esi
mov dword [esp + 0x70], edi
lea eax, [edi + edx]
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x1c]
jl 0x4ffc42
lea edx, [esp + 0x60]
mov ecx, ebx
call fcn.004fde60
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x44]
cmp ecx, esi
jge 0x4ffc54
cmp dword [ebx + 0x24], 0
je 0x4ffb46
add dword [esp + 0x30], esi
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x24]
mov ebx, dword [esp + 0x48]
test eax, eax
je 0x4ff930
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x4ffc88
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + 0x10], eax
cmp dword [ebx], 0
je 0x4ff860
mov ecx, dword [esp + 0x18]
call fcn.004f7420
lea eax, [esp + 0x50]
mov ecx, esi
push eax
lea edx, [esp + 0x64]
call fcn.004fe400
mov ecx, dword [esp + 0x14]
add esp, 4
cmp dword [ecx + 0x14], 0
jne 0x4ffcca
lea edx, [esp + 0x38]
mov ecx, ebx
call fcn.004f8d40
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
push 0
push ecx
mov edx, ecx
mov ecx, ebx
push 0
call fcn.004f8dc0
mov edi, dword [esp + 0x5c]
add esp, 0xc
cmp dword [ebx], 0
mov ebx, dword [esp + 0x10]
jne 0x4ffd0d
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], 1
mov dword [ecx + 8], edi
inc dword [ebx + 0x10]
push ebx
xor edx, edx
mov ecx, esi
call fcn.004f96b0
add esp, 4
mov edx, dword [esi + 0x24]
test edx, edx
jne 0x4ffdb9
mov ecx, dword [esi]
cmp dword [ecx + 0x4c], edx
jle 0x4ffdb9
mov esi, dword [ebx + 8]
mov eax, edi
mov ebx, dword [ebx + 0xc]
cdq
mov ecx, eax
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0xc]
add ecx, esi
mov esi, edx
mov dword [esp + 0x44], ebx
adc esi, ebx
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 8]
cdq
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push dword [ecx + 0x4c]
push edi
push ebx
push esi
push dword [esp + 0x58]
call fcn.00511ad0
push edi
push ebx
push dword [esp + 0x50]
mov esi, eax
push dword [esp + 0x50]
call fcn.00511ad0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
sub esi, eax
mov eax, dword [esp + 0x10]
imul esi, dword [ecx + 0x14]
imul esi, dword [eax + 8]
push esi
mov esi, eax
mov ecx, esi
call fcn.004ff510
mov ecx, dword [esp + 0x40]
add esp, 8
mov edx, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
jmp 0x4ffdbd
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
xor esi, esi
mov dword [esp + 0x24], ecx
mov ebx, dword [eax + 0x50]
test edx, edx
jne 0x4ffe0f
mov eax, dword [esp + 0xc]
xor edi, edi
cmp dword [edi + ecx + 0x1c], ebx
jl 0x4ffe0f
push 0
push esi
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.004feb00
mov eax, dword [esp + 0x2c]
inc esi
mov ecx, dword [esp + 0x14]
mov edx, esi
push eax
mov dword [esp + 0x1c], eax
call fcn.004f96b0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x10]
add edi, 0xc
cmp dword [eax + 0x24], 0
je 0x4ffdd2
mov edx, ecx
mov ecx, dword [esp + 0xc]
call fcn.004f90f0
mov ecx, dword [esp + 0x10]
call fcn.004f89e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret