Function at 0x40d1c0
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 [0x69ff0c]
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.0041eda0
mov esi, eax
mov ecx, edi
mov dword [ebp - 0x6d8], esi
call fcn.0041eda0
mov edi, eax
mov dword [ebp - 0x6d4], edi
mov ecx, 0x582b8c
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d250
test dl, dl
je 0x40d24c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d250
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d230
xor eax, eax
jmp 0x40d255
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d7e0
mov ecx, 0x582b8c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d284
test dl, dl
je 0x40d280
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d284
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d264
xor eax, eax
jmp 0x40d289
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d7e0
lea eax, [ebp - 0x52a]
push eax
mov ecx, 0x6a2a38
call fcn.004155d0
push 0x11
lea ecx, [ebp - 0x55d]
push esi
push ecx
mov word [ebp - 0x567], 0x111
call fcn.00517890
push 0x11
lea edx, [ebp - 0x54c]
push edi
push edx
call fcn.00517890
push 0x11
lea eax, [ebp - 0x53b]
push str.1111
push eax
call fcn.00517890
push 0x10
lea ecx, [ebp - 0x518]
push str.MSOClient1
push ecx
call fcn.00517890
push 0x11
push esi
push 0x6c0a84
call fcn.00517890
push 0x11
push edi
push 0x6c0a95
call fcn.00517890
add esp, 0x48
push 9
mov ecx, 0x6b0010
call fcn.00436490
mov edx, dword [eax + 0x350]
push 0x6b2764
mov ecx, 0x6b2760
mov dword [0x6b27f4], edx
call fcn.004bd290
mov al, byte [0x6b27f4]
mov byte [ebp - 0x508], al
cmp al, 3
jne 0x40d71c
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.00564860
push 0xff
lea ecx, [ebp - 0x103]
push esi
push ecx
mov byte [ebp - 0x104], 0
call fcn.00564860
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 0x40d45e
push 0xff
push eax
lea edx, [ebp - 0x66b]
push edx
mov byte [ebp - 0x66c], al
call fcn.00564860
add esp, 0xc
push 0x66d
mov ecx, 0x6b28c8
call fcn.004be880
push eax
lea eax, [ebp - 0x66c]
push str._s__004_
push eax
call fcn.0056469f
lea ecx, [ebp - 0x66c]
push ecx
push 1
push 0x179c
push 0x6b0010
call fcn.00439e30
add esp, 0x1c
push 1
mov ecx, 0x6b0010
mov edi, eax
call fcn.00436440
mov esi, eax
test esi, esi
je 0x40d87f
test edi, edi
je 0x40d87f
movzx edx, word [esi + 0x1ee]
mov dword [ebp - 0x6d0], edx
fild dword [ebp - 0x6d0]
fadd dword [esi + 0x1c8]
mov ebx, dword [edi]
call fcn.00564f90
fld dword [esi + 0x1c4]
push eax
call fcn.00564f90
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.0056411e
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0x582b8c
push 0x582b8c
push 0
push str.www.google.com
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
jne 0x40d542
push 0xff
push eax
lea ecx, [ebp - 0x66b]
push ecx
mov byte [ebp - 0x66c], al
call fcn.00564860
add esp, 0xc
push 0x66d
mov ecx, 0x6b28c8
call fcn.004be880
push eax
lea edx, [ebp - 0x66c]
push str._s__005_
push edx
call fcn.0056469f
lea eax, [ebp - 0x66c]
push eax
push 1
push 0x179c
push 0x6b0010
call fcn.00439e30
add esp, 0x1c
push 1
mov ecx, 0x6b0010
mov edi, eax
call fcn.00436440
mov esi, eax
test esi, esi
je 0x40d87f
test edi, edi
je 0x40d87f
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d0], ecx
fild dword [ebp - 0x6d0]
fadd dword [esi + 0x1c8]
call fcn.00564f90
fld dword [esi + 0x1c4]
push eax
call fcn.00564f90
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.0056411e
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.0056469f
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 0x40d66a
push 0xff
lea edx, [ebp - 0x66b]
push 0
push edx
mov byte [ebp - 0x66c], 0
call fcn.00564860
add esp, 0xc
push 0x66d
mov ecx, 0x6b28c8
call fcn.004be880
push eax
lea eax, [ebp - 0x66c]
push str._s__001_
push eax
call fcn.0056469f
lea ecx, [ebp - 0x66c]
push ecx
push 1
push 0x179c
push 0x6b0010
call fcn.00439e30
add esp, 0x1c
push 1
mov ecx, 0x6b0010
mov edi, eax
call fcn.00436440
mov esi, eax
test esi, esi
je 0x40d87f
test edi, edi
je 0x40d87f
movzx edx, word [esi + 0x1ee]
mov dword [ebp - 0x6d0], edx
fild dword [ebp - 0x6d0]
jmp 0x40d42c
mov ecx, dword [ebp - 0x6d8]
push 0x11
push ecx
lea edx, [ebp - 0x6c1]
push edx
mov word [ebp - 0x6cb], 0x6f11
call fcn.00517890
mov eax, dword [ebp - 0x6d4]
push 0x11
push eax
lea ecx, [ebp - 0x6b0]
push ecx
call fcn.00517890
push 0x10
lea edx, [ebp - 0x67c]
push str.MSOClient1
push edx
call fcn.00517890
lea eax, [ebp - 0x504]
add esp, 0x24
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d6c0
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x66b]
push ecx
call fcn.00517890
mov dl, byte [0x6b27f4]
mov eax, dword [0x6a256c]
add esp, 0xc
push 0x161
lea ecx, [ebp - 0x6cc]
push ecx
mov ecx, 0x6c2050
mov byte [ebp - 0x66c], dl
mov dword [ebp - 0x6c5], eax
call fcn.00516a50
mov ebx, dword [ebp - 0x6d0]
mov esi, dword [ebp - 0x6d8]
jmp 0x40d73b
mov edx, dword [0x6a256c]
push 0x61
lea eax, [ebp - 0x568]
push eax
mov ecx, 0x6c2050
mov dword [ebp - 0x561], edx
call fcn.00516a50
push 0x11
push esi
push 0x6a1718
call fcn.00517890
add esp, 0xc
push 0x123
mov ecx, 0x6b28c8
call fcn.004be880
push eax
push 3
push 0x17a3
push 0x6b0010
call fcn.00439e30
add esp, 0x10
push 1
mov ecx, 0x6b0010
mov edi, eax
call fcn.00436440
mov esi, eax
test esi, esi
je 0x40d7c1
test edi, edi
je 0x40d7c1
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d4], ecx
fild dword [ebp - 0x6d4]
fadd dword [esi + 0x1c8]
call fcn.00564f90
fld dword [esi + 0x1c4]
push eax
call fcn.00564f90
mov edx, dword [ebx + 0x24]
push eax
mov ecx, edi
call edx
mov ebx, dword [ebp - 0x6d0]
push 1
mov ecx, 0x6a2538
call fcn.00403860
mov eax, dword [ebp - 0x6d8]
push eax
mov ecx, 0x6bc7d0
call fcn.004e4e30
jmp 0x40d856
push 0x16a
mov ecx, 0x6b28c8
call fcn.004be880
push eax
push 1
push 0x1787
push 0x6b0010
call fcn.00439e30
add esp, 0x10
push 1
mov ecx, 0x6b0010
mov edi, eax
call fcn.00436440
mov esi, eax
test esi, esi
je 0x40d856
test edi, edi
je 0x40d856
movzx ecx, word [esi + 0x1ee]
mov ebx, dword [edi]
mov dword [ebp - 0x6d4], ecx
fild dword [ebp - 0x6d4]
fadd dword [esi + 0x1c8]
call fcn.00564f90
fld dword [esi + 0x1c4]
push eax
call fcn.00564f90
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.0056411e
mov esp, ebp
pop ebp
ret