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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a27fe
sub esp, 0x6c
mov eax, 0
mov dword [esp + 0x68], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x51e21c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004a00c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x4a24e8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x28], edi
test byte [esi], al
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x4a2810]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x68], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + 0x33c]
test ebx, ebx
je 0x4a2469
cmp ebx, 1
je 0x4a23dd
xor ebx, ebx
xor esi, esi
jmp 0x4a27e8
mov dword [esp + 0x58], esi
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 1
call fcn.004a2860
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4a243d
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebp
xor ebx, ebx
jmp 0x4a2703
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
lea eax, [0x4e92c0]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00408c80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
call fcn.004a2860
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test edx, edx
je 0x4a2507
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x6c
ret
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
jmp 0x4a257d
mov eax, dword [edi + 0x14]
mov dword [esp], esi
lea ecx, [ebx + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x300
call eax
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
inc eax
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x4a25ca
test edx, edx
jne 0x4a25ca
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x64
jne 0x4a2531
mov eax, dword [0x4cff70]
mov ecx, dword [0x4cff74]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
test edx, edx
je 0x4a261b
mov esi, dword [0x4cff6c]
cmp dword [0x4cff68], edx
je 0x4a25e3
mov esi, 1
jmp 0x4a261d
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], edx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00403cc0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x30]
jmp 0x4a261d
xor esi, esi
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a2696
test ecx, ecx
jne 0x4a262e
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x4a2666
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x51e370]
mov dword [esp + 0x7c], eax
lea eax, [0x51de84]
mov dword [esp + 0x80], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov eax, dword [edx + 0x10]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408b80
mov eax, dword [esp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x51e370]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov edi, dword [esp + 0x34]
lea ebx, [edi + 1]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
cmp ebx, 7
jge 0x4a27d0
mov dword [esp + 0x34], ebx
lea eax, [0x4e92c0]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.00408c80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0
call fcn.004a2860
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
test edx, edx
jne 0x4a27a4
test esi, esi
je 0x4a26e8
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
call fcn.004a5b70
jmp 0x4a26e8
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov ecx, esi
mov ebp, edx
mov edx, eax
mov eax, ebx
jmp 0x4a2507
call fcn.00451710
jmp fcn.004a22e0