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

Disassembly:
push 0xffffffffffffffff
push 0x5689b7
mov eax, dword fs:[0]
push eax
mov eax, 0x119c
call fcn.005498d0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x11b0]
mov dword fs:[0], eax
lea eax, [esp + 0x78]
push eax
call fcn.004a2ca0
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.004a2e10
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004a5090
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x38]
call fcn.004a2ed0
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.004949f0
mov byte [esp + 0x11b8], 4
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.004a2f40
test al, al
je 0x4a19bf
mov bl, 9
nop
lea ecx, [esp + 0x20]
call fcn.004949f0
mov byte [esp + 0x11b8], 5
lea ecx, [esp + 0x24]
call fcn.004949f0
mov byte [esp + 0x11b8], 6
mov dword [esp + 0x30], ebp
mov byte [esp + 0x11b8], 8
mov ecx, 3
lea esi, [esp + 0x3c]
call fcn.00407e20
mov byte [esp + 0x11b8], bl
push 0x3b
mov ecx, esi
push ecx
lea eax, [esp + 0x24]
call fcn.00407eb0
push eax
call fcn.0049baf0
add esp, 0xc
xor eax, eax
mov ecx, esi
call fcn.00487850
lea edi, [esp + 0x20]
call fcn.00494c50
mov eax, 1
mov ecx, esi
call fcn.00487850
mov esi, str.text_file
call fcn.00495d20
mov byte [esp + 0x28], al
mov eax, 2
lea ecx, [esp + 0x3c]
call fcn.00487850
lea edi, [esp + 0x24]
call fcn.00494c50
mov eax, edi
call fcn.00495350
test al, al
jne 0x4a1981
cmp byte [esp + 0x28], al
je 0x4a17ec
lea ecx, [esp + 0x14]
call fcn.004949f0
mov byte [esp + 0x11b8], 0xa
lea edx, [esp + 0x164]
push edx
call fcn.00498350
mov byte [esp + 0x11b8], 0xb
mov ecx, 1
lea eax, [esp + 0x164]
call fcn.004945d0
push 3
push closesocket
mov eax, edi
call fcn.00407eb0
push eax
lea ecx, [esp + 0x170]
call fcn.004984d0
test al, al
jne 0x4a16b6
mov eax, dword [0x676f64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x104]
push ecx
call fcn.00497730
mov byte [esp + 0x11b8], 0xc
mov edx, dword [0x676f64]
push edx
push 0xa1040061
lea eax, [esp + 0xd0]
push eax
call fcn.00497730
mov byte [esp + 0x11b8], 0xd
mov eax, edi
call fcn.00407eb0
push eax
lea ecx, [esp + 0xcc]
call fcn.00497ba0
lea eax, [esp + 0x20]
call fcn.00407eb0
push eax
lea ecx, [esp + 0xcc]
call fcn.00497ba0
lea ecx, [esp + 0xfc]
call fcn.00497ce0
push eax
lea ecx, [esp + 0xcc]
call fcn.00497ba0
push 0xc9
lea esi, [esp + 0xcc]
call fcn.0049b770
add esp, 4
mov byte [esp + 0x11b8], 0xc
mov ecx, esi
call fcn.004978f0
mov byte [esp + 0x11b8], 0xb
lea ecx, [esp + 0xfc]
call fcn.004978f0
mov byte [esp + 0x11b8], 0xa
lea ecx, [esp + 0x164]
call fcn.00498420
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x14]
call fcn.00494b70
jmp 0x4a1981
lea eax, [esp + 0x164]
call fcn.004984a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
call fcn.004949f0
mov byte [esp + 0x11b8], 0xe
lea edi, [esp + 0x18]
lea esi, [esp + 0x164]
call fcn.00498690
test al, al
je 0x4a1728
jmp 0x4a16f0
lea eax, [esp + 0x18]
call fcn.00407eb0
mov ecx, eax
or eax, 0xffffffff
lea edi, [esp + 0x14]
call fcn.00494d50
or eax, 0xffffffff
mov ecx, 0x5f77c4
call fcn.00494d50
lea edi, [esp + 0x18]
lea esi, [esp + 0x164]
call fcn.00498690
test al, al
jne 0x4a16f0
lea eax, [esp + 0x18]
call fcn.00407eb0
mov ecx, eax
or eax, 0xffffffff
lea edi, [esp + 0x14]
call fcn.00494d50
mov eax, edi
call fcn.00495300
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 0x4a177b
push ebp
lea eax, [esp + 0x18]
call fcn.00407eb0
push eax
push ecx
call fcn.00499f80
mov esi, eax
jmp 0x4a177d
xor esi, esi
mov byte [esp + 0x11b8], 0xe
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x4a1799
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.004a2e80
lea esi, [esp + 0x164]
call fcn.00499b60
mov byte [esp + 0x11b8], 0xb
lea ecx, [esp + 0x18]
call fcn.00494b70
mov byte [esp + 0x11b8], 0xa
mov ecx, esi
call fcn.00498420
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x14]
call fcn.00494b70
jmp 0x4a1981
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 0x4a1810
push eax
call fcn.00499570
mov esi, eax
jmp 0x4a1812
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.004c9080
mov ecx, 1
mov eax, esi
call fcn.004945d0
lea eax, [esp + 0x24]
call fcn.00407eb0
mov ecx, eax
mov eax, esi
call fcn.00499b90
test al, al
jne 0x4a1912
mov edx, dword [0x676f64]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00497730
mov byte [esp + 0x11b8], 0x11
mov ecx, dword [0x676f64]
push ecx
push 0xa1040061
lea edx, [esp + 0x9c]
push edx
call fcn.00497730
mov byte [esp + 0x11b8], 0x12
lea eax, [esp + 0x24]
call fcn.00407eb0
push eax
lea ecx, [esp + 0x98]
call fcn.00497ba0
lea eax, [esp + 0x20]
call fcn.00407eb0
push eax
lea ecx, [esp + 0x98]
call fcn.00497ba0
lea ecx, [esp + 0x130]
call fcn.00497ce0
push eax
lea ecx, [esp + 0x98]
call fcn.00497ba0
push 0xc9
lea esi, [esp + 0x98]
call fcn.0049b770
add esp, 4
mov byte [esp + 0x11b8], 0x11
mov ecx, esi
call fcn.004978f0
mov byte [esp + 0x11b8], bl
lea ecx, [esp + 0x130]
call fcn.004978f0
jmp 0x4a1981
mov eax, esi
call fcn.00499c10
mov ecx, esi
mov ebp, eax
call fcn.00499b30
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 0x4a194e
push esi
push ebp
push eax
call fcn.00499f80
mov esi, eax
mov byte [esp + 0x11b8], bl
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a196d
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.004a2e80
xor ebp, ebp
mov byte [esp + 0x11b8], 8
lea eax, [esp + 0x3c]
call fcn.00403560
mov byte [esp + 0x11b8], 4
lea ecx, [esp + 0x20]
call fcn.004a1b80
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.004a2f40
test al, al
jne 0x4a14c0
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.00407eb0
push eax
lea eax, [edi + 0x10]
call fcn.00407eb0
push eax
lea edx, [esp + 0x74]
push edx
call fcn.004bb350
add esp, 0x14
lea eax, [esp + 0x50]
xor esi, esi
call fcn.00452440
mov edi, eax
cmp edi, ebp
jle 0x4a1a1e
nop
mov eax, esi
lea ecx, [esp + 0x50]
call fcn.004a2ec0
mov ecx, dword [eax]
cmp ecx, ebp
je 0x4a1a19
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc esi
cmp esi, edi
jl 0x4a1a00
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
test eax, eax
je 0x4a1a97
push 0xca
mov esi, ebx
call fcn.0049b770
add esp, 4
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.00494b70
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x34]
call fcn.004d89a0
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004a6940
mov byte [esp + 0x11b8], 0
lea eax, [esp + 0x64]
call fcn.004a2e40
mov dword [esp + 0x11b8], 0xffffffff
lea eax, [esp + 0x78]
push eax
call fcn.004a2cf0
xor al, al
jmp 0x4a1af2
mov byte [esp + 0x11b8], 3
lea ecx, [esp + 0x1c]
call fcn.00494b70
mov byte [esp + 0x11b8], 2
lea eax, [esp + 0x34]
call fcn.004d89a0
mov byte [esp + 0x11b8], 1
lea eax, [esp + 0x50]
call fcn.004a6940
mov byte [esp + 0x11b8], 0
lea eax, [esp + 0x64]
call fcn.004a2e40
mov dword [esp + 0x11b8], 0xffffffff
lea ecx, [esp + 0x78]
push ecx
call fcn.004a2cf0
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