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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x60]
cmp eax, dword [ecx + 8]
jbe 0x4fb698
sub esp, 0xe0
mov eax, dword [0x967d50]
mov ecx, dword [0x967d54]
mov edx, dword [0x967d58]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0xec]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004f01b0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
test ecx, ecx
je 0x4faf2c
xor edx, edx
jmp 0x4fb678
xor edx, edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0xb8], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x80], ebx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.004f3150
mov eax, dword [0x967d60]
mov ecx, dword [0x967d64]
mov edx, dword [0x967d68]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xb0], ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x68], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x6c], esi
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov edi, dword [esp + 0xb8]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004f01b0
mov eax, dword [esp + 0xe8]
test eax, eax
jbe 0x4fb66e
mov eax, dword [esp + 0xe4]
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb4], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x78], ebx
nop
lea ebp, [0x712a60]
mov dword [esp], ebp
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0xc0], eax
mov dword [esp], eax
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.004eb210
lea eax, [0x70a920]
mov dword [esp], eax
lea eax, [0x7b17ac]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 8], ecx
call fcn.00409f50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa8], ecx
lea edi, [esp + 0xc4]
mov edx, eax
xor eax, eax
call fcn.004690f9
lea eax, [0x7b17ac]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
call fcn.004f2d80
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x9c], ecx
xor ebx, ebx
mov dword [esp + 0x64], ebx
xor ecx, ecx
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0xac], ecx
xor ecx, ecx
xor ebx, ebx
jmp 0x4fb162
mov edi, dword [esp + 0x8c]
inc edi
mov dword [esp + 0x9c], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0xac], esi
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x90]
mov esi, eax
mov eax, dword [esp + 0x70]
mov eax, ecx
mov ecx, edi
mov edi, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0xf0]
cmp esi, ecx
jle 0x4fb4c0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x50], edi
dec esi
cmp ecx, esi
jne 0x4fb2a6
movzx esi, byte [esp + 0xf4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4fb2a6
mov ebp, dword [0x967d64]
mov dword [esp + 0x84], ebp
mov eax, dword [0x967d60]
cmp edx, ebp
jge 0x4fb250
mov dword [esp + 0xa0], eax
cmp ebp, 1
jne 0x4fb20a
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044e560
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x8c]
movzx esi, byte [esp + 0xf4]
mov edi, dword [esp + 0x50]
mov ebp, 1
mov edx, 1
jmp 0x4fb250
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 8], ecx
call fcn.0044e560
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x8c]
movzx esi, byte [esp + 0xf4]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x84]
cmp ebp, esi
jg 0x4fb25d
mov esi, ebp
cmp ebx, eax
je 0x4fb336
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0xa4], ebx
mov dword [esp], ebx
mov dword [esp + 4], eax
shl esi, 2
mov dword [esp + 8], esi
call fcn.004697f0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
jmp 0x4fb336
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
call fcn.004f3610
mov eax, dword [esp + 0x20]
mov ecx, dword [0x967d60]
mov edx, dword [0x967d64]
mov ebx, dword [0x967d68]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call fcn.004efeb0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0xbc], ebx
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], edi
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0xe8]
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], 0
call fcn.004f3810
mov eax, dword [0x967d50]
mov ecx, dword [0x967d54]
mov edx, dword [0x967d58]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x9c], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x50], ebp
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004f04a0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4fb40b
mov eax, 1
jmp 0x4fb451
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], esi
call fcn.004f04a0
mov eax, dword [esp + 0x18]
test eax, eax
sete al
test al, al
je 0x4fb478
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0xac]
jmp 0x4fb11f
mov eax, 1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0xac]
jmp 0x4fb4f5
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0xac]
jmp 0x4fb11f
mov byte [esp + 0xf8], 1
add esp, 0xe0
ret
mov eax, dword [esp + 0x88]
inc eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x4c]
cmp eax, ebp
jae 0x4fb65f
mov dword [esp + 0x88], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0xac], edi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.004f2500
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x2c], edx
call fcn.004f88f0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xac], ebx
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x60], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 0x64], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov edi, dword [esp + 0xb8]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], edi
call fcn.004f04a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fb49d
mov eax, dword [0x967d50]
mov ecx, dword [0x967d54]
mov edx, dword [0x967d58]
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004f04a0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4fb4cf
mov byte [esp + 0xf8], 0
add esp, 0xe0
ret
mov byte [esp + 0xf8], 0
add esp, 0xe0
ret
xor eax, eax
mov ecx, eax
call fcn.00468ed0
inc edx
cmp edx, ecx
jae 0x4fb690
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x4fb677
shl edx, 5
bsf ebx, ebx
add edx, ebx
jmp 0x4faf2e
mov eax, edx
call fcn.00468ee0
nop
call fcn.00467a60
jmp fcn.004faea0