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

Disassembly:
push 0xffffffffffffffff
push 0x56efd7
mov eax, dword fs:[0]
push eax
mov eax, 0x119c
call fcn.0054f760
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x11b0]
mov dword fs:[0], eax
lea eax, [esp + 0x78]
push eax
call fcn.004a79c0
xor ebp, ebp
mov dword [esp + 0x11b8], ebp
mov edi, dword [esp + 0x11c0]
mov ecx, dword [esp + 0x11c4]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, edi
call edx
lea esi, [esp + 0x64]
call fcn.004a7b30
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004a9d80
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x38]
call fcn.004a7bf0
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.004992d0
mov byte [esp + 0x11b8], 4
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.004a7c60
test al, al
je 0x4a66cf
mov bl, 9
nop
lea ecx, [esp + 0x20]
call fcn.004992d0
mov byte [esp + 0x11b8], 5
lea ecx, [esp + 0x24]
call fcn.004992d0
mov byte [esp + 0x11b8], 6
mov dword [esp + 0x30], ebp
mov byte [esp + 0x11b8], 8
mov ecx, 3
lea esi, [esp + 0x3c]
call fcn.004080a0
mov byte [esp + 0x11b8], bl
push 0x3b
mov ecx, esi
push ecx
lea eax, [esp + 0x24]
call fcn.00408130
push eax
call fcn.004a0540
add esp, 0xc
xor eax, eax
mov ecx, esi
call fcn.0040afa0
lea edi, [esp + 0x20]
call fcn.00499530
mov eax, 1
mov ecx, esi
call fcn.0040afa0
mov esi, str.text_file
call fcn.0049a660
mov byte [esp + 0x28], al
mov eax, 2
lea ecx, [esp + 0x3c]
call fcn.0040afa0
lea edi, [esp + 0x24]
call fcn.00499530
mov eax, edi
call fcn.00499c50
test al, al
jne 0x4a6691
cmp byte [esp + 0x28], al
je 0x4a64fc
lea ecx, [esp + 0x14]
call fcn.004992d0
mov byte [esp + 0x11b8], 0xa
lea edx, [esp + 0x164]
push edx
call fcn.0049cd30
mov byte [esp + 0x11b8], 0xb
mov ecx, 1
lea eax, [esp + 0x164]
call fcn.00498db0
push 3
push closesocket
mov eax, edi
call fcn.00408130
push eax
lea ecx, [esp + 0x170]
call fcn.0049ceb0
test al, al
jne 0x4a63c6
mov eax, dword [0x67f9a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x104]
push ecx
call fcn.0049c100
mov byte [esp + 0x11b8], 0xc
mov edx, dword [0x67f9a0]
push edx
push 0xa1040061
lea eax, [esp + 0xd0]
push eax
call fcn.0049c100
mov byte [esp + 0x11b8], 0xd
mov eax, edi
call fcn.00408130
push eax
lea ecx, [esp + 0xcc]
call fcn.0049c590
lea eax, [esp + 0x20]
call fcn.00408130
push eax
lea ecx, [esp + 0xcc]
call fcn.0049c590
lea ecx, [esp + 0xfc]
call fcn.0049c6c0
push eax
lea ecx, [esp + 0xcc]
call fcn.0049c590
push 0xc9
lea esi, [esp + 0xcc]
call fcn.004a01c0
add esp, 4
mov byte [esp + 0x11b8], 0xc
mov ecx, esi
call fcn.0049c2c0
mov byte [esp + 0x11b8], 0xb
lea ecx, [esp + 0xfc]
call fcn.0049c2c0
mov byte [esp + 0x11b8], 0xa
lea ecx, [esp + 0x164]
call fcn.0049ce00
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x14]
call fcn.00499450
jmp 0x4a6691
lea eax, [esp + 0x164]
call fcn.0049ce80
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
call fcn.004992d0
mov byte [esp + 0x11b8], 0xe
lea edi, [esp + 0x18]
lea esi, [esp + 0x164]
call fcn.0049d090
test al, al
je 0x4a6438
jmp 0x4a6400
lea eax, [esp + 0x18]
call fcn.00408130
mov ecx, eax
or eax, 0xffffffff
lea edi, [esp + 0x14]
call fcn.00499650
or eax, 0xffffffff
mov ecx, 0x608494
call fcn.00499650
lea edi, [esp + 0x18]
lea esi, [esp + 0x164]
call fcn.0049d090
test al, al
jne 0x4a6400
lea eax, [esp + 0x18]
call fcn.00408130
mov ecx, eax
or eax, 0xffffffff
lea edi, [esp + 0x14]
call fcn.00499650
mov eax, edi
call fcn.00499c00
mov edi, eax
push 0x18
add edi, edi
call sub.mfc90u.dll_new_1
mov ecx, eax
add esp, 4
mov dword [esp + 0x38], ecx
mov byte [esp + 0x11b8], 0xf
cmp ecx, ebp
je 0x4a648b
push ebp
lea eax, [esp + 0x18]
call fcn.00408130
push eax
push ecx
call fcn.0049e9a0
mov esi, eax
jmp 0x4a648d
xor esi, esi
mov byte [esp + 0x11b8], 0xe
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x4a64a9
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x68]
mov dword [esp + 0x34], esi
call fcn.004a7ba0
lea esi, [esp + 0x164]
call fcn.0049e580
mov byte [esp + 0x11b8], 0xb
lea ecx, [esp + 0x18]
call fcn.00499450
mov byte [esp + 0x11b8], 0xa
mov ecx, esi
call fcn.0049ce00
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x14]
call fcn.00499450
jmp 0x4a6691
push 0x1c
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x11b8], 0x10
cmp eax, ebp
je 0x4a6520
push eax
call fcn.0049df90
mov esi, eax
jmp 0x4a6522
xor esi, esi
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x3c], esi
call fcn.004b21c0
mov ecx, 1
mov eax, esi
call fcn.00498db0
lea eax, [esp + 0x24]
call fcn.00408130
mov ecx, eax
mov eax, esi
call fcn.0049e5b0
test al, al
jne 0x4a6622
mov edx, dword [0x67f9a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0049c100
mov byte [esp + 0x11b8], 0x11
mov ecx, dword [0x67f9a0]
push ecx
push 0xa1040061
lea edx, [esp + 0x9c]
push edx
call fcn.0049c100
mov byte [esp + 0x11b8], 0x12
lea eax, [esp + 0x24]
call fcn.00408130
push eax
lea ecx, [esp + 0x98]
call fcn.0049c590
lea eax, [esp + 0x20]
call fcn.00408130
push eax
lea ecx, [esp + 0x98]
call fcn.0049c590
lea ecx, [esp + 0x130]
call fcn.0049c6c0
push eax
lea ecx, [esp + 0x98]
call fcn.0049c590
push 0xc9
lea esi, [esp + 0x98]
call fcn.004a01c0
add esp, 4
mov byte [esp + 0x11b8], 0x11
mov ecx, esi
call fcn.0049c2c0
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x130]
call fcn.0049c2c0
jmp 0x4a6691
mov eax, esi
call fcn.0049e630
mov ecx, esi
mov ebp, eax
call fcn.0049e550
xor esi, esi
push 0x18
mov edi, eax
mov dword [esp + 0x30], esi
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x11b8], 0x13
cmp eax, esi
je 0x4a665e
push esi
push ebp
push eax
call fcn.0049e9a0
mov esi, eax
mov byte [esp + 0x11b8], bl
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a667d
mov dword [esp + 0x30], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x68]
mov dword [esp + 0x34], esi
call fcn.004a7ba0
xor ebp, ebp
mov byte [esp + 0x11b8], 8
lea eax, [esp + 0x3c]
call fcn.00403510
mov byte [esp + 0x11b8], 4
lea ecx, [esp + 0x20]
call fcn.004a6890
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.004a7c60
test al, al
jne 0x4a61d0
mov edi, dword [esp + 0x11c0]
mov ebx, dword [esp + 0x11cc]
mov ecx, dword [esp + 0x11c8]
push ebx
push ecx
lea eax, [edi + 0x14]
call fcn.00408130
push eax
lea eax, [edi + 0x10]
call fcn.00408130
push eax
lea edx, [esp + 0x74]
push edx
call fcn.004c0000
add esp, 0x14
lea eax, [esp + 0x50]
xor esi, esi
call fcn.0049cb10
mov edi, eax
cmp edi, ebp
jle 0x4a672e
nop
mov eax, esi
lea ecx, [esp + 0x50]
call fcn.004a7be0
mov ecx, dword [eax]
cmp ecx, ebp
je 0x4a6729
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc esi
cmp esi, edi
jl 0x4a6710
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
test eax, eax
je 0x4a67a7
push 0xca
mov esi, ebx
call fcn.004a01c0
add esp, 4
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.00499450
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x34]
call fcn.0050c500
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004ab550
mov byte [esp + 0x11b8], 0
lea eax, [esp + 0x64]
call fcn.004a7b60
mov dword [esp + 0x11b8], 0xffffffff
lea eax, [esp + 0x78]
push eax
call fcn.004a7a10
xor al, al
jmp 0x4a6802
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.00499450
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x34]
call fcn.0050c500
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004ab550
mov byte [esp + 0x11b8], 0
lea eax, [esp + 0x64]
call fcn.004a7b60
mov dword [esp + 0x11b8], 0xffffffff
lea ecx, [esp + 0x78]
push ecx
call fcn.004a7a10
mov al, 1
mov ecx, dword [esp + 0x11b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11a8
ret 0x10