Function at 0x429de7
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
cmp dword [eax + 0x448], 0
jne 0x429e15
mov dword [eax + 0x44c], 0x28
mov eax, 1
call fcn.004293bd
mov dword [ebx + 0x448], eax
xor eax, eax
mov dword [ebx + 0x450], eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00425563
cmp dword [ebx + 0x18], 2
je 0x429ea5
mov esi, dword [ebx + 4]
test esi, esi
je 0x429ea5
mov edi, dword [esi + 0x18]
test edi, edi
je 0x429ea5
mov ecx, str.Enabled
mov edx, str.HTTPProxy
mov eax, edi
call fcn.00428bff
test eax, eax
je 0x429ea0
mov dword [esp + 4], 0x5cbf1f
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x429ea0
mov ecx, dword [esi + 0x44]
xor esi, esi
test ecx, ecx
je 0x42a344
cmp esi, dword [ecx + 4]
jae 0x42a344
mov edx, esi
mov eax, ecx
mov dword [ebp - 0x1c], ecx
call fcn.00425c8e
mov edx, dword [ebx + 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x429ea5
inc esi
mov ecx, dword [ebp - 0x1c]
jmp 0x429e72
xor edi, edi
mov dword [ebx + 0x18], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
xor esi, esi
mov edi, dword [ebx + 4]
test edi, edi
je 0x429efa
mov edi, dword [edi + 0x18]
test edi, edi
je 0x429efa
mov ecx, str.MobileIPEnabled
mov edx, str.Network
mov eax, edi
call fcn.00428bff
test eax, eax
je 0x429ef8
mov dword [esp + 4], 0x5cbf1f
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x429ef8
mov ecx, str.MobileIP
mov edx, str.Network
mov eax, edi
call fcn.00428bff
mov edi, eax
jmp 0x429efa
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x429f09
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + 0x20]
cmp dword [0x5af054], 2
jbe 0x429f40
mov dword [0x611418], 3
mov dword [0x611414], 3
movzx eax, si
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._HTTP__Connecting_to__s:_d_n
call fcn.004268ea
cmp dword [ebx + 0x450], 0
jne 0x42a336
mov eax, dword [ebx + 4]
test eax, eax
je 0x429f78
cmp dword [eax + 0x24], 0
je 0x429f78
mov dword [ebx + 0x450], 0xb
mov dword [ebx + 0x4c4], 0xffffffd6
mov ecx, 0xffffffd6
jmp 0x42a2a9
call fcn.004215f4
mov dword [ebp - 0x24], eax
movzx eax, si
mov dword [ebp - 0x20], eax
mov esi, dword [ebx + 0x448]
test edi, edi
jne 0x429f98
cmp dword [esi + 4], 0
je 0x429fc4
jmp 0x42a003
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x20]
mov edx, edi
mov eax, esi
call fcn.00429b5b
mov edi, eax
test eax, eax
je 0x429f90
jmp 0x42a1c0
mov eax, 2
bt dword [esi], 9
jae 0x429fd4
mov eax, 1
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov dword [esi + 4], eax
bt dword [esi], 0xb
jae 0x42a003
mov edx, 1
mov eax, esi
call fcn.005a39bf
mov word [esi + 8], 2
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push edx
mov dword [esi + 0xc], eax
inc eax
jne 0x42a0be
cmp dword [0x5af054], 2
jbe 0x42a061
mov dword [0x611418], 3
mov dword [0x611414], 3
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._Sock_IPV4__Solving__s_address_n
call fcn.004268ea
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ecx
mov edi, eax
test eax, eax
jne 0x42a084
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, 0xffffffd6
jmp 0x42a1eb
cmp dword [0x5af054], 2
jbe 0x42a0b4
mov dword [0x611418], 3
mov dword [0x611414], 3
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._Sock_IPV4__Host__s_found_n
call fcn.004268ea
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0xc], eax
bt dword [esi], 9
jae 0x42a2b0
cmp dword [0x5af054], 2
jbe 0x42a0ff
mov dword [0x611418], 3
mov dword [0x611414], 3
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._Sock_IPV4__Connecting_to__s:_d_n
call fcn.004268ea
mov dword [esp + 8], 0x10
lea eax, [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
inc eax
jne 0x42a180
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp dword [0x5af054], 0
je 0x42a155
mov dword [0x611418], 1
mov dword [0x611414], 3
mov dword [esp + 4], eax
mov dword [esp], str._Sock_IPV4__Couldnt_connect_socket___last_sock_error__d_n
call fcn.004268ea
cmp edi, 0x71
je 0x42a2b0
cmp edi, 0x2726
je 0x42a172
cmp edi, 0xb
je 0x42a1c5
mov edi, 0xffffffd7
jmp 0x42a1eb
mov eax, dword [esi]
bt eax, 0xb
jae 0x42a2b0
jmp 0x42a1c5
cmp dword [0x5af054], 2
jbe 0x42a2b0
mov dword [0x611418], 3
mov dword [0x611414], 3
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._Sock_IPV4__Connected_to__s:_d_n
call fcn.004268ea
jmp 0x42a2b0
cmp eax, 0xffffffd3
jne 0x42a1eb
mov eax, dword [ebx + 0x44c]
mov edi, 0xffffffd3
test eax, eax
je 0x42a1eb
xor edx, edx
mov dword [ebx + 0x450], edx
dec eax
mov dword [ebx + 0x44c], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebx + 0x434], 0
jne 0x42a297
mov eax, dword [ebx + 4]
test eax, eax
je 0x42a297
cmp dword [eax + 0x28], 0
je 0x42a297
mov eax, ebx
call fcn.00426c5f
mov eax, dword [ebx + 0x434]
test eax, eax
je 0x42a297
call fcn.0053f10b
test eax, eax
jne 0x42a297
mov dword [ebx + 0x43c], 1
call fcn.004215f4
mov edx, dword [ebp - 0x24]
sub eax, edx
mov dword [ebx + 0x4a8], eax
mov dword [ebx + 0x450], 1
cmp dword [0x5af054], 1
jbe 0x42a282
mov dword [0x611418], 2
mov dword [0x611414], 3
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._HTTP__Host__s:_d_unreachable__using_existing_cache_n
call fcn.004268ea
xor ecx, ecx
mov edx, 1
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00425563
mov dword [ebx + 0x450], 0xb
mov dword [ebx + 0x4c4], edi
mov ecx, edi
mov edx, 0xb
jmp 0x42a289
call fcn.004215f4
mov edx, dword [ebp - 0x24]
sub eax, edx
mov dword [ebx + 0x4a8], eax
mov dword [ebx + 0x450], 1
cmp dword [0x5af054], 2
jbe 0x42a301
mov dword [0x611418], 3
mov dword [0x611414], 3
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._HTTP__Connected_to__s:_d_n
call fcn.004268ea
xor ecx, ecx
mov edx, 1
mov eax, ebx
call fcn.00425563
mov eax, dword [ebx + 0x448]
mov ecx, 0x20000
mov edx, 1
call fcn.005a3a0e
mov eax, dword [ebx + 0x448]
mov ecx, 0x20000
xor edx, edx
call fcn.005a3a0e
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00426c5f
mov ecx, str.Port
mov edx, str.HTTPProxy
mov eax, edi
call fcn.00428bff
mov esi, 0x50
test eax, eax
je 0x42a368
mov dword [esp], eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, 0x5cc749
mov edx, str.HTTPProxy
call fcn.00428bff
mov dword [ebp - 0x1c], eax
mov dword [ebx + 0x18], 1
jmp 0x429eac