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

Disassembly:
sub esp, 0x90
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
push esi
push edi
test ebp, ebp
je 0x4fcf51
cmp byte [ebp], al
je 0x4fcf51
xor edi, edi
jmp 0x4fcf5a
mov edi, 1
test ebp, ebp
je 0x4fcf8e
mov ecx, str.:memory:
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4fcf81
test dl, dl
je 0x4fcf7d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4fcf81
add eax, 2
add ecx, 2
test dl, dl
jne 0x4fcf61
xor eax, eax
jmp 0x4fcf86
sbb eax, eax
or eax, 1
test eax, eax
je 0x4fcfaa
test edi, edi
je 0x4fcf94
cmp byte [ebx + 0x56], 2
je 0x4fcfaa
mov eax, dword [esp + 0xb8]
test al, al
js 0x4fcfb1
mov ecx, dword [esp + 0xb4]
xor esi, esi
jmp 0x4fcfc0
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov esi, 1
or ecx, 2
mov dword [esp + 0x1c], ecx
test eax, 0x100
je 0x4fcfe4
test esi, esi
jne 0x4fcfd3
test edi, edi
je 0x4fcfe4
and eax, 0xfffffeff
or eax, 0x200
mov dword [esp + 0xb8], eax
push 0
push 0x30
call fcn.00515c10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4fd0a9
push 0x30
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [ebx + 8], 0
mov dword [ebx], eax
mov dword [ebx + 0x20], ebx
mov dword [ebx + 0x24], 1
mov dword [esp + 0x14], esi
test edi, edi
jne 0x4fd2d0
mov eax, dword [esp + 0xb8]
test esi, esi
je 0x4fd03e
mov dword [esp + 0x14], esi
test al, 0x40
je 0x4fd2d0
mov dword [esp + 0x14], esi
test eax, 0x20000
je 0x4fd2d0
test ebp, ebp
jne 0x4fd055
xor ecx, ecx
jmp 0x4fd06f
mov ecx, ebp
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fd060
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x28]
lea edi, [ecx + 1]
mov eax, dword [eax + 8]
lea ebp, [eax + 1]
cmp ebp, edi
cmovg ecx, eax
mov eax, ecx
cdq
add eax, 1
adc edx, 0
push edx
push eax
call fcn.00515c10
add esp, 8
mov dword [esp + 0x14], eax
mov byte [ebx + 9], 1
test eax, eax
jne 0x4fd0c7
push ebx
call fcn.004c1720
add esp, 4
mov eax, 7
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006daf70
add esp, 0x90
ret
test esi, esi
je 0x4fd0e0
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push edi
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4fd113
push eax
mov byte [eax], 0
mov eax, dword [esp + 0x24]
push ebp
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax + 0x24]
call eax
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4fd10f
cmp ebp, 0x200
jne 0x4fd128
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
cmp byte [0x78d01c], 0
jne 0x4fd141
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp 0x4fd18e
push dword [esp + 0x14]
call fcn.004c1720
push ebx
call fcn.004c1720
add esp, 8
mov eax, ebp
jmp 0x4fd0ae
push 4
call dword [0x78d060]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4fd15e
push eax
call dword [0x78d068]
add esp, 4
cmp byte [0x78d01c], 0
jne 0x4fd171
mov dword [esp + 0x2c], 0
jmp 0x4fd18e
push 2
call dword [0x78d060]
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4fd18e
push eax
call dword [0x78d068]
add esp, 4
mov edi, dword [0x7937a4]
mov dword [esp + 0x14], esi
test edi, edi
je 0x4fd21c
mov dword [esp + 0x14], esi
mov esi, dword [edi]
mov eax, ebp
mov ecx, dword [esi + 0xb8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4fd1d0
test dl, dl
je 0x4fd1cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4fd1d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4fd1b0
xor eax, eax
jmp 0x4fd1d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4fd1e1
mov eax, dword [esp + 0x28]
cmp dword [esi], eax
je 0x4fd1ea
mov edi, dword [edi + 0x48]
test edi, edi
jne 0x4fd1a4
jmp 0x4fd21c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x14]
sub edx, 1
js 0x4fd216
mov eax, dword [eax + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 4
add eax, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4fd20e
cmp dword [ecx + 4], edi
je 0x4fd27d
sub eax, 0x10
sub edx, 1
jns 0x4fd203
mov dword [ebx + 4], edi
inc dword [edi + 0x44]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4fd22e
push eax
call dword [0x78d070]
add esp, 4
cmp dword [0x78d018], 0
je 0x4fd2ba
mov eax, dword [0x7935d8]
test eax, eax
je 0x4fd24e
push eax
call dword [0x78d068]
add esp, 4
push ebp
call dword [0x78d044]
sub dword [0x793570], eax
dec dword [0x793594]
push ebp
call dword [0x78d03c]
mov eax, dword [0x7935d8]
add esp, 8
test eax, eax
je 0x4fd2c4
push eax
call dword [0x78d070]
jmp 0x4fd2c1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4fd28f
push eax
call dword [0x78d070]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fd2a1
push eax
call dword [0x78d070]
add esp, 4
push ebp
call fcn.004c1720
push ebx
call fcn.004c1720
add esp, 8
mov eax, 0x13
jmp 0x4fd0ae
push ebp
call dword [0x78d03c]
add esp, 4
test edi, edi
jne 0x4fd4ff
mov ebp, dword [esp + 0x20]
xorps xmm0, xmm0
push 0
push 0x5c
movq qword [esp + 0x50], xmm0
call fcn.00515c10
mov edi, eax
add esp, 8
test edi, edi
je 0x4fd70c
push 0x5c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x4e93e0
push dword [esp + 0xc8]
push dword [esp + 0x30]
push 0x54
push ebp
push edi
push dword [esp + 0x4c]
call fcn.005175c0
mov ebp, eax
add esp, 0x28
mov esi, edi
test ebp, ebp
jne 0x4fd6a1
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
push edx
mov eax, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x34]
mov dword [edx + 0x88], eax
mov dword [edx + 0x8c], ecx
call fcn.004e9580
mov esi, dword [edi]
lea eax, [esp + 0x3c]
push 0x64
push ebp
push eax
mov dword [esp + 0x20], ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x40]
add esp, 0x10
mov ecx, dword [eax]
test ecx, ecx
je 0x4fd384
push ebp
push ebp
push 0x64
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x10], ecx
cmp ecx, 0x20a
je 0x4fd390
jmp 0x4fd386
xor ecx, ecx
mov esi, edi
test ecx, ecx
jne 0x4fd69d
mov eax, dword [esp + 0x1c]
mov byte [edi + 0x10], al
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + 0xc0], 0x4cabf0
lea ecx, [eax + 0xc0]
mov dword [eax + 0xc4], edi
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
test edx, edx
je 0x4fd3cb
push ecx
push 0xf
push eax
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov dword [ebx + 4], edi
mov edx, dword [edi]
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
cmp byte [edx + 0xe], 0
je 0x4fd3e1
or word [edi + 0x18], 1
movzx ecx, byte [esp + 0x49]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [edi + 0x24], ecx
cmp ecx, 0x200
jb 0x4fd434
cmp ecx, 0x10000
ja 0x4fd434
lea eax, [ecx - 1]
test ecx, eax
jne 0x4fd434
mov cl, byte [esp + 0x4c]
or word [edi + 0x18], 2
mov eax, dword [esp + 0x6c]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x11], al
mov eax, dword [esp + 0x78]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x12], al
jmp 0x4fd449
mov dword [edi + 0x24], ebp
cmp dword [esp + 0x20], ebp
je 0x4fd447
cmp dword [esp + 0x14], ebp
jne 0x4fd447
mov word [edi + 0x11], bp
xor cl, cl
movzx ebp, cl
lea eax, [edi + 0x24]
push ebp
push eax
push edx
call fcn.005181f0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov esi, edi
test ecx, ecx
jne 0x4fd69d
mov eax, dword [edi + 0x24]
sub eax, ebp
mov dword [edi + 0x44], 1
mov dword [edi + 0x28], eax
cmp byte [ebx + 9], cl
je 0x4fd503
cmp byte [0x78d01c], cl
jne 0x4fd49a
mov eax, dword [0x7937a4]
mov dword [edi + 0x48], eax
mov dword [0x7937a4], edi
jmp 0x4fd503
push 2
call dword [0x78d060]
add esp, 4
mov esi, eax
cmp byte [0x78d01c], 0
je 0x4fd4cc
push 0
call dword [0x78d060]
add esp, 4
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x4fd4cc
lea ebp, [eax + 7]
mov esi, edi
jmp 0x4fd6a1
test esi, esi
je 0x4fd4f1
push esi
call dword [0x78d068]
mov eax, dword [0x7937a4]
push esi
mov dword [edi + 0x48], eax
mov dword [0x7937a4], edi
call dword [0x78d070]
add esp, 8
jmp 0x4fd4ff
mov eax, dword [0x7937a4]
mov dword [edi + 0x48], eax
mov dword [0x7937a4], edi
mov ecx, dword [esp + 0x10]
cmp byte [ebx + 9], 0
mov esi, edi
je 0x4fd58c
mov eax, dword [esp + 0x24]
xor edx, edx
mov ebp, dword [eax + 0x14]
test ebp, ebp
jle 0x4fd58c
mov ecx, dword [eax + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x4fd52e
cmp byte [eax + 9], 0
jne 0x4fd538
inc edx
add ecx, 0x10
cmp edx, ebp
jl 0x4fd522
jmp 0x4fd588
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4fd549
nop
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4fd540
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x4fd560
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov dword [eax + 0x1c], ebx
jmp 0x4fd588
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4fd575
cmp dword [ecx + 4], edx
jae 0x4fd575
mov eax, ecx
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4fd567
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
test ecx, ecx
je 0x4fd585
mov dword [ecx + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [eax], ebx
test ecx, ecx
je 0x4fd5b1
mov eax, dword [esp + 0x18]
mov ebp, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x4fd6a1
jmp 0x4fd711
cmp byte [ebx + 9], 0
mov esi, dword [ebx + 4]
je 0x4fd5e1
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4fd5cc
push ebx
call fcn.004cacd0
add esp, 4
cmp byte [ebx + 9], 0
je 0x4fd5e1
add dword [ebx + 0xc], 0xffffffff
jne 0x4fd5e1
push ebx
call fcn.00544110
add esp, 4
cmp dword [esi + 0x34], 0
jne 0x4fd666
cmp byte [ebx + 9], 0
mov esi, dword [ebx + 4]
je 0x4fd606
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4fd606
push ebx
call fcn.004cacd0
add esp, 4
mov eax, dword [esi]
mov esi, dword [eax + 0xe4]
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x20]
cdq
push edx
push eax
push 0
push 0x1f4000
mov dword [esi + 0x18], 0xfffff830
call fcn.006db890
test edx, edx
jl 0x4fd644
jg 0x4fd637
cmp eax, 0x3b9aca00
jbe 0x4fd644
mov eax, 0x3b9aca00
mov dword [esp + 0x34], 0
push eax
push dword [esi + 0x34]
call dword [0x78d090]
add esp, 8
cmp byte [ebx + 9], 0
je 0x4fd666
add dword [ebx + 0xc], 0xffffffff
jne 0x4fd666
push ebx
call fcn.00544110
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
test edx, edx
je 0x4fd680
lea eax, [edi + 4]
push eax
mov eax, dword [edx + 0x28]
push 0x1e
push ecx
call eax
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fd696
push eax
call dword [0x78d070]
add esp, 4
mov eax, ebp
jmp 0x4fd0ae
mov ebp, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x4fd6b2
push 0
push eax
call fcn.00516f10
add esp, 8
cmp dword [0x78d018], 0
je 0x4fd700
mov eax, dword [0x7935d8]
test eax, eax
je 0x4fd6ce
push eax
call dword [0x78d068]
add esp, 4
push esi
call dword [0x78d044]
sub dword [0x793570], eax
dec dword [0x793594]
push esi
call dword [0x78d03c]
mov eax, dword [0x7935d8]
add esp, 8
test eax, eax
je 0x4fd711
push eax
call dword [0x78d070]
add esp, 4
jmp 0x4fd711
push esi
call dword [0x78d03c]
add esp, 4
jmp 0x4fd711
mov ebp, 7
cmp dword [0x78d018], 0
je 0x4fd76c
mov eax, dword [0x7935d8]
test eax, eax
je 0x4fd72d
push eax
call dword [0x78d068]
add esp, 4
push ebx
call dword [0x78d044]
sub dword [0x793570], eax
dec dword [0x793594]
push ebx
call dword [0x78d03c]
mov eax, dword [0x7935d8]
add esp, 8
test eax, eax
je 0x4fd776
push eax
call dword [0x78d070]
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
jmp 0x4fd684
push ebx
call dword [0x78d03c]
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [eax], 0
jmp 0x4fd684