Function at 0x4de040
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d8
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x598], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.004219a0
lea ecx, [ebp - 0x44c]
call fcn.004219a0
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 0x5d0], 0
push 0x400
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0063a460
add esp, 0xc
mov ecx, dword [ebp + 0x14]
call fcn.00425070
movzx ecx, al
test ecx, ecx
jne 0x4de50f
mov ecx, dword [ebp + 0x14]
add ecx, 0x18
call fcn.00425070
movzx edx, al
test edx, edx
jne 0x4de50f
lea ecx, [ebp - 0x4cc]
call fcn.004d8980
mov dword [ebp - 0x590], 0
lea ecx, [ebp - 0x434]
call fcn.004219a0
lea ecx, [ebp - 0x41c]
call fcn.004219a0
lea ecx, [ebp - 0x584]
call fcn.004da8e0
mov dword [ebp - 0x594], 0
lea eax, [ebp - 0x4cc]
push eax
call fcn.004cf6b0
add esp, 4
call fcn.00423af0
mov dword [ebp - 0x59c], eax
lea ecx, [ebp - 0x4b4]
call fcn.00424f20
mov dword [ebp - 0x58c], eax
cmp dword [ebp - 0x58c], 0
jne 0x4de146
mov dword [ebp - 0x5b0], 0
jmp 0x4de1bc
mov ecx, dword [ebp - 0x58c]
push ecx
call fcn.00642390
add esp, 4
add eax, 1
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 0x3fffffff
jle 0x4de176
mov dword [ebp - 0x5a4], 0
jmp 0x4de1b0
mov eax, dword [ebp - 0x588]
shl eax, 1
call fcn.00613680
mov dword [ebp - 0x5c4], esp
mov edx, dword [ebp - 0x59c]
push edx
mov eax, dword [ebp - 0x588]
push eax
mov ecx, dword [ebp - 0x58c]
push ecx
mov edx, dword [ebp - 0x5c4]
push edx
call fcn.0044e0b0
mov dword [ebp - 0x5a4], eax
mov eax, dword [ebp - 0x5a4]
mov dword [ebp - 0x5b0], eax
lea ecx, [ebp - 0x4cc]
call fcn.00424f20
mov dword [ebp - 0x58c], eax
cmp dword [ebp - 0x58c], 0
jne 0x4de1e2
mov dword [ebp - 0x5b4], 0
jmp 0x4de258
mov ecx, dword [ebp - 0x58c]
push ecx
call fcn.00642390
add esp, 4
add eax, 1
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 0x3fffffff
jle 0x4de212
mov dword [ebp - 0x5a8], 0
jmp 0x4de24c
mov eax, dword [ebp - 0x588]
shl eax, 1
call fcn.00613680
mov dword [ebp - 0x5c8], esp
mov edx, dword [ebp - 0x59c]
push edx
mov eax, dword [ebp - 0x588]
push eax
mov ecx, dword [ebp - 0x58c]
push ecx
mov edx, dword [ebp - 0x5c8]
push edx
call fcn.0044e0b0
mov dword [ebp - 0x5a8], eax
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5b4], eax
lea ecx, [ebp - 0x49c]
call fcn.00424f20
mov dword [ebp - 0x58c], eax
cmp dword [ebp - 0x58c], 0
jne 0x4de27e
mov dword [ebp - 0x5b8], 0
jmp 0x4de2f4
mov ecx, dword [ebp - 0x58c]
push ecx
call fcn.00642390
add esp, 4
add eax, 1
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 0x3fffffff
jle 0x4de2ae
mov dword [ebp - 0x5ac], 0
jmp 0x4de2e8
mov eax, dword [ebp - 0x588]
shl eax, 1
call fcn.00613680
mov dword [ebp - 0x5cc], esp
mov edx, dword [ebp - 0x59c]
push edx
mov eax, dword [ebp - 0x588]
push eax
mov ecx, dword [ebp - 0x58c]
push ecx
mov edx, dword [ebp - 0x5cc]
push edx
call fcn.0044e0b0
mov dword [ebp - 0x5ac], eax
mov eax, dword [ebp - 0x5ac]
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x5b0]
push ecx
mov edx, dword [ebp - 0x5b4]
push edx
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x5b8]
push ecx
mov edx, dword [ebp - 0x5d0]
push edx
lea ecx, [ebp - 0x584]
call fcn.004da9d0
push 0x6986da
lea ecx, [ebp - 0x41c]
call fcn.00421e60
lea ecx, [ebp - 0x47c]
call fcn.00425070
movzx eax, al
test eax, eax
jne 0x4de46f
push str.Proxy_Authenticate
lea ecx, [ebp - 0x47c]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x594], eax
cmp dword [ebp - 0x594], 0
je 0x4de46f
push str.Negotiate
lea ecx, [ebp - 0x47c]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x590], eax
cmp dword [ebp - 0x590], 0
je 0x4de3c4
mov ecx, dword [ebp - 0x590]
cmp ecx, dword [ebp - 0x594]
jbe 0x4de3c4
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x584]
call fcn.004dae00
jmp 0x4de46d
push str.NTLM
lea ecx, [ebp - 0x47c]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x590], eax
cmp dword [ebp - 0x590], 0
je 0x4de413
mov ecx, dword [ebp - 0x590]
cmp ecx, dword [ebp - 0x594]
jbe 0x4de413
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x584]
call fcn.004dac50
jmp 0x4de46d
push str.Basic
lea ecx, [ebp - 0x47c]
call fcn.00424f20
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x590], eax
cmp dword [ebp - 0x590], 0
je 0x4de45b
mov ecx, dword [ebp - 0x590]
cmp ecx, dword [ebp - 0x594]
jbe 0x4de45b
lea edx, [ebp - 0x41c]
push edx
lea ecx, [ebp - 0x584]
call fcn.004dab50
jmp 0x4de46d
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x584]
call fcn.004dab50
jmp 0x4de481
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x584]
call fcn.004dab50
lea ecx, [ebp - 0x44c]
call fcn.00424f20
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.CONNECT__s:_d_HTTP_1.0_r_nUser_agent:Mozilla_1.0_r_n
push 0x400
lea ecx, [ebp - 0x404]
push ecx
call fcn.004c9e80
add esp, 0x18
lea ecx, [ebp - 0x41c]
call fcn.00424f20
push eax
push 0x400
lea edx, [ebp - 0x404]
push edx
call fcn.004df760
push 0x69876c
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.004df760
lea ecx, [ebp - 0x584]
call fcn.004da980
lea ecx, [ebp - 0x41c]
call fcn.00421c30
lea ecx, [ebp - 0x434]
call fcn.00421c30
lea ecx, [ebp - 0x4cc]
call fcn.004d8c10
jmp 0x4de530
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.CONNECT__s:_d_HTTP_1.0_r_nUser_agent:Mozilla_1.0_r_n_r_n
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.004c9e80
add esp, 0x14
push 0
lea ecx, [ebp - 0x404]
push ecx
call fcn.00642390
add esp, 4
push eax
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x400
push 0
lea ecx, [ebp - 0x404]
push ecx
call fcn.0063a460
add esp, 0xc
push 0
push 0x3ff
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x4de5a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4de59e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4de569
jmp 0x4de6a6
push str.HTTP_1
lea ecx, [ebp - 0x404]
push ecx
call fcn.004dfad0
add esp, 8
mov dword [ebp - 0x5a0], eax
cmp dword [ebp - 0x5a0], 0
je 0x4de5fe
xor edx, edx
mov dword [ebp - 0x5bc], edx
push 3
mov eax, dword [ebp - 0x5a0]
add eax, 9
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call fcn.00639960
add esp, 0xc
lea edx, [ebp - 0x5bc]
push edx
call fcn.006438bd
add esp, 4
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0x191
je 0x4de616
cmp dword [ebp - 0x598], 0x197
jne 0x4de67c
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x50
call fcn.00421e60
push 0
push str._r_n_r_n
mov ecx, dword [ebp + 0x14]
add ecx, 0x50
call fcn.00451450
mov dword [ebp - 0x5c0], eax
cmp dword [ebp - 0x5c0], 0xffffffff
je 0x4de65b
mov ecx, dword [ebp - 0x5c0]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0x50
call fcn.004da020
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.004dd110
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
push 1
call fcn.004cf880
add esp, 8
call fcn.004cf600
mov ecx, dword [ebp - 0x598]
mov dword [ebp - 0x5d4], ecx
lea ecx, [ebp - 0x44c]
call fcn.00421c30
lea ecx, [ebp - 0x464]
call fcn.00421c30
mov eax, dword [ebp - 0x5d4]
jmp 0x4de6e4
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x598]
mov dword [ebp - 0x5d8], ecx
lea ecx, [ebp - 0x44c]
call fcn.00421c30
lea ecx, [ebp - 0x464]
call fcn.00421c30
mov eax, dword [ebp - 0x5d8]
lea esp, [ebp - 0x5d8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret