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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a252a
sub esp, 0x74
mov eax, 0
mov dword [esp + 0x70], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [0x51208c]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0049fdd0
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 0x4a21ea
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], edi
test byte [esi], al
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x4a2540]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x78]
mov ebx, dword [ecx + 0x33c]
test ebx, ebx
je 0x4a2165
cmp ebx, 1
je 0x4a20d3
xor esi, esi
xor ebx, ebx
jmp 0x4a2518
mov dword [esp + 0x60], 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.004a2590
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
test ebp, ebp
jne 0x4a2133
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
xor edx, edx
jmp 0x4a242f
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
lea eax, [0x4d9940]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00408fc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
call fcn.004a2590
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]
test eax, eax
je 0x4a220f
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x74
ret
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
jmp 0x4a2291
mov eax, dword [edi + 0x14]
mov dword [esp], esi
lea edx, [ecx + 0x3c]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x300
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
inc ecx
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x4a22e4
test eax, eax
jne 0x4a22e4
mov eax, dword [esp + 0x38]
cmp eax, 0x64
jne 0x4a2241
mov eax, dword [0x5b4930]
mov ecx, dword [0x5b4934]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
test eax, eax
je 0x4a2335
mov esi, dword [0x5b492c]
cmp dword [0x5b4928], eax
je 0x4a22fd
mov esi, 1
jmp 0x4a2337
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], eax
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00403370
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x3c]
jmp 0x4a2337
xor esi, esi
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a23bc
test ebp, ebp
jne 0x4a2348
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x4a2386
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x5121b8]
mov dword [esp + 0x84], eax
lea eax, [0x511c6c]
mov dword [esp + 0x88], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
mov eax, dword [eax + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408ec0
mov eax, dword [esp + 8]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x5121b8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
mov edi, dword [esp + 0x2c]
lea edx, [edi + 1]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
cmp edx, 7
jge 0x4a2502
mov dword [esp + 0x2c], edx
lea eax, [0x4d9940]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.00408fc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0
call fcn.004a2590
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 0x4a24d0
test esi, esi
je 0x4a2414
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
call fcn.004a58b0
jmp 0x4a2414
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
call eax
add esp, 0x74
ret
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov edx, ebx
mov ebx, dword [esp + 0x54]
mov ebp, ebx
mov ebx, esi
jmp 0x4a220f
call fcn.0045cfd0
jmp fcn.004a1fd0