Function at 0x4390f0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ea23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x30b4
call fcn.0046b3f0
push edi
mov dword [ebp - 0x30c0], ecx
lea ecx, [ebp - 0x1c]
call fcn.00407a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407a10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407a10
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x14], 0
je 0x4391c4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
add edx, 4
push edx
lea ecx, [ebp - 0x1c]
call fcn.00407ae0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
add edx, 0xc
push edx
lea ecx, [ebp - 0x1028]
call fcn.00407ae0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x102c], ecx
mov edx, dword [ebp + 0x14]
add edx, 0x14
push edx
lea ecx, [ebp - 0x1048]
call fcn.00407ae0
mov eax, dword [ebp + 0x14]
add eax, 0x18
push eax
lea ecx, [ebp - 0x1044]
call fcn.00407ae0
cmp dword [ebp - 0x14], 0
jne 0x4393a6
push 0x10
push 0
lea ecx, [ebp - 0x105c]
push ecx
call fcn.0046c1b0
add esp, 0xc
mov word [ebp - 0x105c], 2
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x105a], ax
mov ecx, 0x4b2a78
call fcn.0040ee50
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1058], eax
push 0x10
lea edx, [ebp - 0x105c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x104c], eax
push 0x10
push 0
lea ecx, [ebp - 0x105c]
push ecx
call fcn.0046c1b0
add esp, 0xc
mov word [ebp - 0x105c], 2
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1058], eax
mov ax, word [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x105a], ax
cmp dword [ebp - 0x1058], 0xffffffff
jne 0x4392ed
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 0
jne 0x4392da
mov dword [ebp - 0x307c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x307c]
jmp 0x439dba
mov edx, dword [ebp - 0x1060]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1058], edx
push 0x10
lea eax, [ebp - 0x105c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x439355
mov dword [ebp - 0x3080], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3080]
jmp 0x439dba
mov dword [ebp - 0x3084], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3084]
jmp 0x439dba
mov dl, byte [0x49781c]
mov byte [ebp - 0x1024], dl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1023]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.0040ee50
mov dword [ebp - 0x1040], eax
mov word [ebp - 0x103c], 2
mov ax, word [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x103a], ax
mov ecx, dword [ebp - 0x1040]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1038], eax
cmp dword [ebp - 0x1038], 0xffffffff
jne 0x439493
mov edx, dword [ebp - 0x1040]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1064], eax
cmp dword [ebp - 0x1064], 0
je 0x439442
mov eax, dword [ebp - 0x1064]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1038], eax
jmp 0x439493
mov dword [ebp - 0x3088], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3088]
jmp 0x439dba
push 0
push 0
push 0
push 0
push 0x10
lea ecx, [ebp - 0x103c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x439503
mov dword [ebp - 0x308c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x308c]
jmp 0x439dba
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x1c], 0
je 0x43955d
mov dword [ebp - 0x3090], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3090]
jmp 0x439dba
push 0x497820
lea ecx, [ebp - 0x1028]
call fcn.0040ee50
push eax
call fcn.0047231a
add esp, 8
test eax, eax
je 0x43959b
push 0x497828
lea ecx, [ebp - 0x1028]
call fcn.0040ee50
push eax
call fcn.0047231a
add esp, 8
test eax, eax
jne 0x439886
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.CONNECT__s:_d_HTTP_1.0_r_n_r_n
lea eax, [ebp - 0x1024]
push eax
call fcn.0046b198
add esp, 0x10
cmp dword [ebp - 0x102c], 0
je 0x43966d
mov cl, byte [0x49784b]
mov byte [ebp - 0x3074], cl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x3073]
rep stosd dword es:[edi], eax
mov dl, byte [0x49784c]
mov byte [ebp - 0x206c], dl
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x206b]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1044]
push eax
mov ecx, dword [ebp - 0x1048]
push ecx
push 0x497850
lea edx, [ebp - 0x206c]
push edx
call fcn.0046b198
add esp, 0x10
push 0x1001
lea eax, [ebp - 0x3074]
push eax
lea ecx, [ebp - 0x206c]
push ecx
call fcn.0046b430
add esp, 4
push eax
lea edx, [ebp - 0x206c]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00437ed0
lea eax, [ebp - 0x3074]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.CONNECT__s:_d_HTTP_1.0_r_nProxy_Authorization:_Basic__s_r_n_r_n
lea eax, [ebp - 0x1024]
push eax
call fcn.0046b198
add esp, 0x14
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438db0
mov dword [ebp - 0x18], 0x1000
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.004387a0
push 0x497894
call fcn.0046b430
add esp, 4
push eax
push str.HTTP_1.0_200
lea eax, [ebp - 0x1024]
push eax
call fcn.0046dee1
add esp, 0xc
test eax, eax
je 0x439741
push 0x4978b4
call fcn.0046b430
add esp, 4
push eax
push str.HTTP_1.1_200
lea ecx, [ebp - 0x1024]
push ecx
call fcn.0046dee1
add esp, 0xc
test eax, eax
je 0x439741
mov dword [ebp - 0x3094], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3094]
jmp 0x439dba
mov edx, dword [ebp - 0x30c0]
cmp dword [edx + 0x10], 0
je 0x439835
mov dword [ebp - 0x18], 0x1000
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.004387a0
test eax, eax
jg 0x4397c7
mov dword [ebp - 0x3098], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x3098]
jmp 0x439dba
push 0x4978d4
lea eax, [ebp - 0x1024]
push eax
call fcn.0046b110
add esp, 8
test eax, eax
jne 0x439830
mov dword [ebp - 0x309c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x309c]
jmp 0x439dba
jmp 0x439741
mov dword [ebp - 0x30a0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30a0]
jmp 0x439dba
push 0x4978d8
lea ecx, [ebp - 0x1028]
call fcn.0040ee50
push eax
call fcn.0047231a
add esp, 8
test eax, eax
jne 0x439d6e
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x102c], 0
je 0x439b30
mov byte [ebp - 0x1024], 5
mov byte [ebp - 0x1023], 2
mov byte [ebp - 0x1022], 0
mov byte [ebp - 0x1021], 2
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1024]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30c0]
call fcn.00438d00
mov dword [ebp - 0x18], 2
push 8
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1024]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30c0]
call fcn.00438bc0
movsx ecx, byte [ebp - 0x1024]
cmp ecx, 5
jne 0x439ada
movsx edx, byte [ebp - 0x1023]
cmp edx, 2
jne 0x439a7c
mov byte [ebp - 0x1024], 1
lea ecx, [ebp - 0x1048]
call fcn.0040ee50
push eax
call fcn.0046b430
add esp, 4
mov dword [ebp - 0x18], eax
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x1023], al
lea ecx, [ebp - 0x1048]
call fcn.0040ee50
push eax
lea ecx, [ebp - 0x1022]
push ecx
call fcn.0046b260
add esp, 8
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x1044]
call fcn.0040ee50
push eax
call fcn.0046b430
add esp, 4
mov ecx, dword [ebp - 0x18]
mov byte [ebp + ecx - 0x1024], al
lea ecx, [ebp - 0x1044]
call fcn.0040ee50
push eax
mov edx, dword [ebp - 0x18]
lea eax, [ebp + edx - 0x1023]
push eax
call fcn.0046b260
add esp, 8
lea ecx, [ebp - 0x1044]
call fcn.0040ee50
push eax
call fcn.0046b430
add esp, 4
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438d00
mov dword [ebp - 0x18], 2
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438bc0
movsx eax, byte [ebp - 0x1023]
test eax, eax
je 0x439a7a
mov dword [ebp - 0x30a4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30a4]
jmp 0x439dba
jmp 0x439ad8
movsx ecx, byte [ebp - 0x1023]
test ecx, ecx
je 0x439ad8
mov dword [ebp - 0x30a8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30a8]
jmp 0x439dba
jmp 0x439b2b
mov dword [ebp - 0x30ac], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30ac]
jmp 0x439dba
jmp 0x439bf1
mov byte [ebp - 0x1024], 5
mov byte [ebp - 0x1023], 1
mov byte [ebp - 0x1022], 0
mov dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x1024]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438d00
mov dword [ebp - 0x18], 2
push 8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1024]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438bc0
movsx edx, byte [ebp - 0x1024]
cmp edx, 5
jne 0x439ba0
movsx eax, byte [ebp - 0x1023]
test eax, eax
je 0x439bf1
mov dword [ebp - 0x30b0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30b0]
jmp 0x439dba
mov byte [ebp - 0x1024], 5
mov byte [ebp - 0x1023], 1
mov byte [ebp - 0x1022], 0
mov byte [ebp - 0x1021], 3
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046b430
add esp, 4
mov byte [ebp - 0x1020], al
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x101f]
push eax
call fcn.0046b260
add esp, 8
mov cx, word [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3078], ax
push 2
lea edx, [ebp - 0x3078]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b430
add esp, 4
lea ecx, [ebp + eax - 0x101f]
push ecx
call fcn.0046b4c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046b430
add esp, 4
add eax, 7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438d00
mov dword [ebp - 0x18], 0xa
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30c0]
call fcn.00438bc0
movsx eax, byte [ebp - 0x1024]
cmp eax, 5
jne 0x439ccf
movsx ecx, byte [ebp - 0x1023]
test ecx, ecx
je 0x439d20
mov dword [ebp - 0x30b4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30b4]
jmp 0x439dba
mov dword [ebp - 0x30b8], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30b8]
jmp 0x439dba
mov dword [ebp - 0x30bc], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1044]
call fcn.00407ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1048]
call fcn.00407ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.00407ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407ac0
mov eax, dword [ebp - 0x30bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10