Function at 0x40d350
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e8
mov eax, dword [0x6bef0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
push esi
push edi
push 6
mov ecx, ebx
mov dword [ebp - 0x6d0], ebx
call edx
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
push 7
mov ecx, ebx
mov dword [ebp - 0x6e0], esi
call edx
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x6e8], edi
call fcn.0041f490
mov esi, eax
mov ecx, edi
mov dword [ebp - 0x6d8], esi
call fcn.0041f490
mov edi, eax
mov dword [ebp - 0x6d4], edi
mov ecx, 0x5a1b8c
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d3e0
test dl, dl
je 0x40d3dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d3e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d3c0
xor eax, eax
jmp 0x40d3e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d970
mov ecx, 0x5a1b8c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d414
test dl, dl
je 0x40d410
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d414
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d3f4
xor eax, eax
jmp 0x40d419
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d970
lea eax, [ebp - 0x52a]
push eax
mov ecx, 0x6c1a38
call fcn.00415760
push 0x11
lea ecx, [ebp - 0x55d]
push esi
push ecx
mov word [ebp - 0x567], 0x111
call fcn.0052d9a0
push 0x11
lea edx, [ebp - 0x54c]
push edi
push edx
call fcn.0052d9a0
push 0x11
lea eax, [ebp - 0x53b]
push str.1111
push eax
call fcn.0052d9a0
push 0x10
lea ecx, [ebp - 0x518]
push str.MSOClient1
push ecx
call fcn.0052d9a0
push 0x11
push esi
push 0x6dfa84
call fcn.0052d9a0
push 0x11
push edi
push 0x6dfa95
call fcn.0052d9a0
add esp, 0x48
push 9
mov ecx, 0x6cf010
call fcn.00436be0
mov edx, dword [eax + 0x350]
push 0x6d1764
mov ecx, 0x6d1760
mov dword [0x6d17f4], edx
call fcn.004c5000
mov al, byte [0x6d17f4]
mov byte [ebp - 0x508], al
cmp al, 3
jne 0x40d8ac
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x503]
push esi
push eax
mov dword [ebp - 0x6e4], esi
mov byte [ebp - 0x504], 0
call fcn.005842e0
push 0xff
lea ecx, [ebp - 0x103]
push esi
push ecx
mov byte [ebp - 0x104], 0
call fcn.005842e0
add esp, 0x18
push esi
push esi
push esi
push esi
push str.BUDDY
mov dword [ebp - 0x6dc], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x40d5ee
push 0xff
push eax
lea edx, [ebp - 0x66b]
push edx
mov byte [ebp - 0x66c], al
call fcn.005842e0
add esp, 0xc
push 0x66d
mov ecx, 0x6d18c8
call fcn.004c65f0
push eax
lea eax, [ebp - 0x66c]
push str._s__004_
push eax
call fcn.0058408f
lea ecx, [ebp - 0x66c]
push ecx
push 1
push 0x179c
push 0x6cf010
call fcn.0043a580
add esp, 0x1c
push 1
mov ecx, 0x6cf010
mov edi, eax
call fcn.00436b90
mov esi, eax
test esi, esi
je 0x40da0f
test edi, edi
je 0x40da0f
movzx edx, word [esi + 0x1ee]
mov dword [ebp - 0x6d0], edx
fild dword [ebp - 0x6d0]
fadd dword [esi + 0x1c8]
mov ebx, dword [edi]
call fcn.00584a10
fld dword [esi + 0x1c4]
push eax
call fcn.00584a10
push eax
mov eax, dword [ebx + 0x24]
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583b0e
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0x5a1b8c
push 0x5a1b8c
push 0
push str.www.google.com
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
jne 0x40d6d2
push 0xff
push eax
lea ecx, [ebp - 0x66b]
push ecx
mov byte [ebp - 0x66c], al
call fcn.005842e0
add esp, 0xc
push 0x66d
mov ecx, 0x6d18c8
call fcn.004c65f0
push eax
lea edx, [ebp - 0x66c]
push str._s__005_
push edx
call fcn.0058408f
lea eax, [ebp - 0x66c]
push eax
push 1
push 0x179c
push 0x6cf010
call fcn.0043a580
add esp, 0x1c
push 1
mov ecx, 0x6cf010
mov edi, eax
call fcn.00436b90
mov esi, eax
test esi, esi
je 0x40da0f
test edi, edi
je 0x40da0f
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d0], ecx
fild dword [ebp - 0x6d0]
fadd dword [esi + 0x1c8]
call fcn.00584a10
fld dword [esi + 0x1c4]
push eax
call fcn.00584a10
mov edx, dword [ebx + 0x24]
push eax
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00583b0e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x55d]
push ecx
lea edx, [ebp - 0x104]
push str.Auth_AuthUsrInfoChk.aspx_USRID_sUSRPWD_s
push edx
call fcn.0058408f
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
lea ecx, [ebp - 0x6dc]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x6dc]
lea edx, [ebp - 0x6e4]
push edx
push eax
lea ecx, [ebp - 0x504]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
cmp byte [ebp - 0x504], 0x30
je 0x40d7fa
push 0xff
lea edx, [ebp - 0x66b]
push 0
push edx
mov byte [ebp - 0x66c], 0
call fcn.005842e0
add esp, 0xc
push 0x66d
mov ecx, 0x6d18c8
call fcn.004c65f0
push eax
lea eax, [ebp - 0x66c]
push str._s__001_
push eax
call fcn.0058408f
lea ecx, [ebp - 0x66c]
push ecx
push 1
push 0x179c
push 0x6cf010
call fcn.0043a580
add esp, 0x1c
push 1
mov ecx, 0x6cf010
mov edi, eax
call fcn.00436b90
mov esi, eax
test esi, esi
je 0x40da0f
test edi, edi
je 0x40da0f
movzx edx, word [esi + 0x1ee]
mov dword [ebp - 0x6d0], edx
fild dword [ebp - 0x6d0]
jmp 0x40d5bc
mov ecx, dword [ebp - 0x6d8]
push 0x11
push ecx
lea edx, [ebp - 0x6c1]
push edx
mov word [ebp - 0x6cb], 0x6f11
call fcn.0052d9a0
mov eax, dword [ebp - 0x6d4]
push 0x11
push eax
lea ecx, [ebp - 0x6b0]
push ecx
call fcn.0052d9a0
push 0x10
lea edx, [ebp - 0x67c]
push str.MSOClient1
push edx
call fcn.0052d9a0
lea eax, [ebp - 0x504]
add esp, 0x24
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d850
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x66b]
push ecx
call fcn.0052d9a0
mov dl, byte [0x6d17f4]
mov eax, dword [0x6c156c]
add esp, 0xc
push 0x161
lea ecx, [ebp - 0x6cc]
push ecx
mov ecx, 0x6e1050
mov byte [ebp - 0x66c], dl
mov dword [ebp - 0x6c5], eax
call fcn.0052c1d0
mov ebx, dword [ebp - 0x6d0]
mov esi, dword [ebp - 0x6d8]
jmp 0x40d8cb
mov edx, dword [0x6c156c]
push 0x61
lea eax, [ebp - 0x568]
push eax
mov ecx, 0x6e1050
mov dword [ebp - 0x561], edx
call fcn.0052c1d0
push 0x11
push esi
push 0x6c0718
call fcn.0052d9a0
add esp, 0xc
push 0x123
mov ecx, 0x6d18c8
call fcn.004c65f0
push eax
push 3
push 0x17a3
push 0x6cf010
call fcn.0043a580
add esp, 0x10
push 1
mov ecx, 0x6cf010
mov edi, eax
call fcn.00436b90
mov esi, eax
test esi, esi
je 0x40d951
test edi, edi
je 0x40d951
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d4], ecx
fild dword [ebp - 0x6d4]
fadd dword [esi + 0x1c8]
call fcn.00584a10
fld dword [esi + 0x1c4]
push eax
call fcn.00584a10
mov edx, dword [ebx + 0x24]
push eax
mov ecx, edi
call edx
mov ebx, dword [ebp - 0x6d0]
push 1
mov ecx, 0x6c1538
call fcn.004039f0
mov eax, dword [ebp - 0x6d8]
push eax
mov ecx, 0x6db7d0
call fcn.004eda80
jmp 0x40d9e6
push 0x16a
mov ecx, 0x6d18c8
call fcn.004c65f0
push eax
push 1
push 0x1787
push 0x6cf010
call fcn.0043a580
add esp, 0x10
push 1
mov ecx, 0x6cf010
mov edi, eax
call fcn.00436b90
mov esi, eax
test esi, esi
je 0x40d9e6
test edi, edi
je 0x40d9e6
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d4], ecx
fild dword [ebp - 0x6d4]
fadd dword [esi + 0x1c8]
call fcn.00584a10
fld dword [esi + 0x1c4]
push eax
call fcn.00584a10
mov edx, dword [ebx + 0x24]
push eax
mov ecx, edi
call edx
mov ebx, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x6e0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 0
call edx
mov ecx, dword [ebp - 0x6e8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 0
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 1
mov ecx, ebx
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583b0e
mov esp, ebp
pop ebp
ret