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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x4e25b0
sub esp, 0xb8
lea eax, [0x647be0]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xbc]
mov dword [eax], ecx
lea edx, [0x6618a0]
mov dword [esp], edx
call fcn.0040c880
mov eax, dword [esp + 4]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov ecx, dword [0x8489b0]
test ecx, ecx
jne 0x4e228d
mov ecx, dword [esp + 0x5c]
jmp 0x4e2298
call fcn.0046a600
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 2
mov ecx, dword [0x8489b0]
lea edx, [eax + 0x18]
test ecx, ecx
je 0x4e22bc
call fcn.0046a600
mov dword [edi], edx
mov dword [esp + 0x4c], eax
mov dword [eax + 0xc], edx
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.0046a885
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00454610
movzx ecx, byte [esp + 0x30]
mov byte [esp + 0x37], cl
lea edi, [esp + 0x8c]
lea esi, [esp + 4]
call fcn.0046ad32
lea edi, [esp + 0x60]
lea esi, [esp + 0x8c]
call fcn.0046ad32
cmp dword [esp + 0x6c], 0xe
jne 0x4e2338
mov eax, dword [esp + 0x68]
mov dword [esp], eax
lea eax, [0x6838ae]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call fcn.004034b0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4e23e2
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4e2362
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x4e234c
test eax, eax
jmp 0x4e2362
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x4e2358
test eax, eax
jmp 0x4e2362
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x4e2369
test eax, eax
mov eax, 3
jmp 0x4e2370
test eax, eax
mov eax, 1
mov byte [esp + 0x36], al
jne 0x4e2382
mov ecx, dword [esp + 0xbc]
dec ecx
mov dword [esp + 0x60], ecx
lea eax, [0x648820]
mov dword [esp], eax
call fcn.0040c880
mov eax, dword [0x8489b0]
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
test eax, eax
je 0x4e23c0
lea eax, [0x6704e0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.00411ac0
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x60]
call fcn.0046ad32
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
movzx edx, byte [esp + 0x37]
mov eax, 1
mov ebx, 1
jmp 0x4e2429
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov byte [esp + 0xcc], 0
add esp, 0xb8
ret
lea esi, [esp + 0x60]
mov ebp, edi
mov edi, eax
call fcn.0046ad32
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov edi, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], edi
cmp dword [esp + 0x6c], 0xe
je 0x4e2443
mov ebp, 1
jmp 0x4e2484
mov byte [esp + 0x37], dl
mov eax, dword [esp + 0x68]
mov dword [esp], eax
lea eax, [0x6838ae]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call fcn.004034b0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x4c]
movzx edx, byte [esp + 0x37]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x3c]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4e2588
test dl, dl
je 0x4e2588
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.0046a885
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00454610
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x44], ecx
movzx edx, byte [esp + 0x30]
mov byte [esp + 0x37], dl
lea edi, [esp + 0x8c]
lea esi, [esp + 4]
call fcn.0046ad32
lea edi, [esp + 0x60]
lea esi, [esp + 0x8c]
call fcn.0046ad32
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
cmp ecx, ebx
jb 0x4e24f4
mov edi, dword [esp + 0x48]
jmp 0x4e252f
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6704e0]
mov dword [esp + 0x10], eax
call fcn.0044fab0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx edx, byte [esp + 0x37]
mov ebx, ecx
mov ecx, eax
mov dword [esp + 0x3c], ecx
mov ebp, dword [0x8489b0]
imul eax, ebx, 0x2c
lea eax, [eax + edi - 0x2c]
test ebp, ebp
je 0x4e2412
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
lea ecx, [0x6704e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [esp + 0x60]
mov dword [esp + 8], edx
call fcn.00411ac0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
movzx edx, byte [esp + 0x37]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x54]
jmp 0x4e2412
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], eax
movzx eax, byte [esp + 0x36]
mov byte [esp + 0xcc], al
add esp, 0xb8
ret
call fcn.00469200
jmp fcn.004e2220