Function at 0x41c030
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x3024
call fcn.0043ae00
mov al, byte [0x473aa0]
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x3040]
push edi
mov byte [esp + 0x28], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x29]
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov eax, dword [0x4fb8a4]
test eax, eax
je 0x41c073
mov esi, 0x4fb8a8
jmp 0x41c07e
mov esi, ebx
shl esi, 0xa
add esi, 0x4fc8c4
mov edi, 2
test eax, eax
mov eax, dword [0x4fc0a8]
mov word [esp + 0x18], di
jne 0x41c098
mov eax, dword [ebx*4 + 0x4ff0c4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x41c0ce
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41c335
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x3038]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0x10
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
jne 0x41c335
mov eax, dword [0x4fb8a4]
test eax, eax
je 0x41c103
mov eax, 0x4fbca8
jmp 0x41c10d
mov eax, ebx
shl eax, 0xa
add eax, 0x4fdcc4
push 0x4707ec
push eax
call fcn.0043fa60
add esp, 8
test eax, eax
je 0x41c46b
mov eax, dword [0x4fb8a4]
test eax, eax
je 0x41c133
mov eax, 0x4fbca8
jmp 0x41c13d
mov eax, ebx
shl eax, 0xa
add eax, 0x4fdcc4
push 0x46f59c
push eax
call fcn.0043fa60
add esp, 8
test eax, eax
je 0x41c46b
mov eax, dword [0x4fb8a4]
test eax, eax
je 0x41c163
mov eax, 0x4fbca8
jmp 0x41c16d
mov eax, ebx
shl eax, 0xa
add eax, 0x4fdcc4
push 0x46f7a8
push eax
call fcn.0043fa60
add esp, 8
test eax, eax
jne 0x41c335
mov eax, dword [0x4fb8a4]
test eax, eax
mov eax, dword [0x4fc0ac]
jne 0x41c198
mov eax, dword [ebx*4 + 0x4ff0d8]
test eax, eax
mov byte [esp + 0x28], 5
je 0x41c344
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x28]
push 4
push edx
push ebp
mov ecx, esi
mov byte [esp + 0x35], 2
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 2
mov dword [esp + 0x1c], 4
call fcn.00411190
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.004112c0
cmp byte [esp + 0x28], 5
jne 0x41c335
mov al, byte [esp + 0x29]
cmp al, 2
jne 0x41c331
mov ebp, dword [0x4fb8a4]
mov byte [esp + 0x28], 1
test ebp, ebp
je 0x41c214
mov edi, 0x4fc0b0
jmp 0x41c21f
mov edi, ebx
shl edi, 0xa
add edi, 0x4ff0ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
test ebp, ebp
mov byte [esp + 0x29], dl
je 0x41c23a
mov edi, 0x4fc0b0
jmp 0x41c245
mov edi, ebx
shl edi, 0xa
add edi, 0x4ff0ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x2a]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add edx, 2
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x41c27a
mov edi, 0x4fc4b0
jmp 0x41c285
mov edi, ebx
shl edi, 0xa
add edi, 0x5004ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebp, ebp
mov byte [esp + edx + 0x28], cl
je 0x41c29e
mov edi, 0x4fc4b0
jmp 0x41c2a9
mov edi, ebx
shl edi, 0xa
add edi, 0x5004ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + edx + 0x29]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x41c2db
mov edi, 0x4fc4b0
jmp 0x41c2e6
shl ebx, 0xa
add ebx, 0x5004ec
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x3038]
mov edi, dword [esp + 0x14]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00411190
lea edx, [esp + 0x10]
push 8
lea eax, [esp + 0x2c]
push edx
push eax
push esi
mov ecx, edi
mov dword [esp + 0x20], 2
call fcn.004112c0
mov al, byte [esp + 0x29]
test al, al
je 0x41c390
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3024
ret 0x10
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push 3
push ecx
push ebp
mov ecx, esi
mov byte [esp + 0x35], 1
mov byte [esp + 0x36], 0
mov dword [esp + 0x1c], 3
call fcn.00411190
lea edx, [esp + 0x10]
push 8
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.004112c0
cmp byte [esp + 0x28], 5
jne 0x41c335
mov al, byte [esp + 0x29]
test al, al
jne 0x41c335
mov ebp, dword [esp + 0x303c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov byte [esp + 0x2c], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2d]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x28], 5
shr ecx, 2
mov byte [esp + 0x29], 1
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 3
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3040]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov esi, dword [esp + 0x3038]
mov word [esp + ecx + 0x2d], dx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x28]
not ecx
add ecx, 6
push ecx
mov dword [esp + 0x14], ecx
push edx
push esi
mov ecx, edi
call fcn.00411190
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x20], 0xa
call fcn.004112c0
cmp byte [esp + 0x28], 5
jne 0x41c335
mov al, byte [esp + 0x29]
test al, al
jne 0x41c335
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3024
ret 0x10
mov esi, dword [0x4fb8a4]
mov eax, dword [0x4fc0ac]
test esi, esi
jne 0x41c481
mov eax, dword [ebx*4 + 0x4ff0d8]
test eax, eax
je 0x41c543
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2031]
mov byte [esp + 0x2030], dl
mov byte [esp + 0x102c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x102d]
test esi, esi
rep stosd dword es:[edi], eax
je 0x41c4cb
mov ecx, 0x4fc4b0
mov eax, 0x4fc0b0
jmp 0x41c4dc
shl ebx, 0xa
mov eax, ebx
lea ecx, [eax + 0x5004ec]
lea eax, [eax + 0x4ff0ec]
push ecx
push eax
lea edx, [esp + 0x1034]
push str._s:_s
push edx
call fcn.0043afc4
lea edi, [esp + 0x103c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x103c]
push ecx
lea ecx, [esp + 0x2044]
push eax
push ecx
call fcn.00407da0
mov eax, dword [esp + 0x305c]
mov ecx, dword [esp + 0x3058]
lea edx, [esp + 0x204c]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push str.CONNECT__s:_d_HTTP_1.0_r_nProxy_Authorization:_Basic__s_r_n_r_n
push edx
call fcn.0043afc4
add esp, 0x30
jmp 0x41c565
mov eax, dword [esp + 0x3040]
mov ecx, dword [esp + 0x303c]
push eax
push ecx
lea edx, [esp + 0x30]
push str.CONNECT__s:_d_HTTP_1.0_r_n_r_n
push edx
call fcn.0043afc4
add esp, 0x10
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x28]
push ecx
mov dword [esp + 0x14], ecx
push eax
push ebp
mov ecx, ebx
call fcn.00411190
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
mov esi, 0x1000
push edx
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.004123e0
lea eax, [esp + 0x28]
push 0x46e14c
push eax
call fcn.0042f510
mov edi, str.HTTP_1.0_200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push str.HTTP_1.0_200
push ecx
call fcn.00445b80
add esp, 0x14
test eax, eax
je 0x41c603
mov edi, str.HTTP_1.1_200
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HTTP_1.1_200
push edx
call fcn.00445b80
add esp, 0xc
test eax, eax
jne 0x41c335
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.004123e0
test eax, eax
jle 0x41c335
mov esi, 0x46e38c
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41c64e
test cl, cl
je 0x41c64a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41c64e
add eax, 2
add esi, 2
test cl, cl
jne 0x41c62a
xor eax, eax
jmp 0x41c653
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c459
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004123e0
test eax, eax
jg 0x41c621
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3024
ret 0x10