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

Disassembly:
sub esp, 0xd8
mov ecx, dword [esp + 0xe4]
push ebx
mov ebx, dword [esp + 0xe0]
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
xor eax, eax
mov byte [ecx], al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe8]
cmp byte [ebx + eax + 0x286], 0
je 0x4b29b9
pop ebp
mov byte [ecx], 1
xor eax, eax
pop ebx
add esp, 0xd8
ret
push esi
push edi
call fcn.004bc320
mov ecx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
mov dword [esp + 0x1c], 0x493e0
mov edi, edx
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x618], eax
jle 0x4b29e3
mov eax, 1
mov edx, dword [ecx + 0x61c]
test edx, edx
jle 0x4b29f0
or eax, 2
dec eax
je 0x4b2a07
dec eax
je 0x4b2a03
dec eax
jne 0x4b2a16
mov eax, dword [ecx + 0x618]
cmp eax, edx
jl 0x4b2a0d
mov eax, edx
jmp 0x4b2a0d
mov eax, dword [ecx + 0x618]
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
push dword [ecx + 0xb54]
push dword [ecx + 0xb50]
push edi
push esi
call fcn.004bc3b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
mov eax, ecx
mov dword [esp + 0x1c], ecx
sbb dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
or eax, edx
je 0x4b2e0a
test edx, edx
jl 0x4b2e0a
jg 0x4b2a5a
test ecx, ecx
jb 0x4b2e0a
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, eax
xor ecx, 1
mov dword [esp + 0x30], ecx
lea ecx, [ebx + 0x1ac]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x28], ecx
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x4b2c86
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004b42f0
add esp, 0x10
test eax, eax
jne 0x4b2b58
push dword [ebx + 0x2ac]
mov eax, dword [ebx + 0x2b8]
xor ebp, ebp
push dword [ebx + 0x2a8]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2bc]
push edi
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
call fcn.004bc3b0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp edx, ecx
jl 0x4b2afc
mov eax, dword [esp + 0x28]
jg 0x4b2ae0
cmp dword [esp + 0x2c], eax
jb 0x4b2afc
push ecx
push eax
push str.After__I64dms_connect_time__move_on__n
push dword [esp + 0x20]
call fcn.004ac0a0
mov ebp, 0x274c
add esp, 0x10
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b2bb0
cmp dword [ebx + 0x58], eax
jne 0x4b2bb0
push dword [ebx + 0x2ac]
push dword [ebx + 0x2a8]
push edi
push esi
call fcn.004bc3b0
mov dword [esp + 0x3c], eax
mov ecx, edx
mov eax, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [eax + 0x624]
cdq
cmp ecx, edx
jl 0x4b2bac
jg 0x4b2b44
cmp dword [esp + 0x2c], eax
jb 0x4b2bac
push 1
push dword [esp + 0xf4]
push ebx
call fcn.004b3dd0
add esp, 0xc
jmp 0x4b2bac
cmp eax, 2
je 0x4b2b7c
cmp byte [ebx + 0x2a1], 0
jne 0x4b2b7c
test al, 4
je 0x4b2bac
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax]
call fcn.004b3eb0
jmp 0x4b2ba5
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax]
call fcn.004b3eb0
add esp, 8
test al, al
jne 0x4b2cdc
push str.Connection_failed_n
push dword [esp + 0x18]
call fcn.004ac0a0
mov ebp, dword [esp + 0x2c]
add esp, 8
mov eax, dword [esp + 0x10]
test ebp, ebp
je 0x4b2c86
mov eax, dword [esp + 0x14]
push ebp
mov dword [eax + 0xc54], ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x15]
lea ecx, [ebx + ecx*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4b2c86
push 0x2e
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.004bb550
push pe_nt_image_headers32
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.004c60f0
push eax
push dword [ebx + 0xfc]
lea eax, [esp + 0x58]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push dword [esp + 0x3c]
call fcn.004ac0a0
mov eax, dword [esp + 0x58]
add esp, 0x2c
mov eax, dword [eax]
cmp dword [eax + 0x1c], 0
jne 0x4b2c31
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x4b2c42
push 0
push 2
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.0040a260
mov ecx, dword [esp + 0x10]
push ecx
push dword [esp + 0xf4]
mov dword [ebx + 0x2b8], eax
push ebx
mov dword [ebx + 0x2bc], edx
call fcn.004b3dd0
add esp, 0xc
cmp eax, 7
jne 0x4b2c76
mov ecx, dword [esp + 0x30]
cmp dword [ebx + ecx*4 + 0x1ac], 0xffffffff
jne 0x4b2c82
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
jmp 0x4b2c8a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x4b2a60
test ecx, ecx
je 0x4b2dfd
cmp dword [ebx + 0x58], 0
jne 0x4b2cc4
push 1
push dword [esp + 0xf4]
push ebx
call fcn.004b3dd0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b2d89
cmp byte [ebx + 0x28f], 0
je 0x4b2d96
mov esi, dword [ebx + 0xc4]
jmp 0x4b2dbe
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0xf0]
mov eax, dword [ebx + ecx*4 + 0x1ac]
mov dword [ebx + ebp*4 + 0x1a4], eax
mov eax, dword [ebx + ecx*4 + 0x54]
mov dword [ebx + 0x50], eax
mov dword [ebx + ecx*4 + 0x1ac], 0xffffffff
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x30]
lea esi, [ebx + ecx*4]
cmp dword [eax + 4], 0x17
sete al
mov byte [ebx + 0x293], al
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
je 0x4b2d3d
push eax
push ebx
call fcn.004b2610
add esp, 8
mov dword [esi + 0x1ac], 0xffffffff
push ebp
push ebx
call fcn.004b3860
add esp, 8
test eax, eax
jne 0x4b2e20
mov eax, dword [esp + 0xf4]
mov byte [ebx + ebp + 0x286], 1
mov byte [eax], 1
test ebp, ebp
jne 0x4b2d73
push 4
push dword [esp + 0x18]
call fcn.004bc880
add esp, 8
push dword [ebx + ebp*4 + 0x1a4]
push ebx
call fcn.004b3150
push ebx
call fcn.004a4420
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd8
ret
cmp byte [ebx + 0x28e], 0
je 0x4b2da7
mov esi, dword [ebx + 0xe4]
jmp 0x4b2dbe
cmp byte [ebx + 0x28b], 0
je 0x4b2db8
mov esi, dword [ebx + 0xb4]
jmp 0x4b2dbe
mov esi, dword [ebx + 0x9c]
push pe_nt_image_headers32
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.004c60f0
push eax
push dword [ebx + 0xfc]
mov ebx, dword [esp + 0x28]
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push ebx
call fcn.004abfe0
add esp, 0x20
mov ecx, 0x1c
cmp dword [ebx + 0xc54], 0x274c
je 0x4b2dfd
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xd8
ret
push str.Connection_time_out
push dword [esp + 0x18]
call fcn.004abfe0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret