Function at 0x405fd5
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0x18]
xor eax, eax
cmp byte [edi], 0x2f
sete al
add eax, edi
mov dword [esp + 4], eax
mov dword [esp], str.imudEncode___s_
call fcn.0040ace7
xor eax, eax
cmp byte [edi], 0x2f
sete al
add eax, edi
mov dword [esp], eax
call fcn.00405cad
mov ebx, eax
mov dword [esp], str.inetClear__
call fcn.0040ace7
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov dword [esp], str.InternetOpen__
call fcn.0040ace7
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Mozilla_5.0__Windows__U__Windows_NT_5.1__ru__rv:1.9.2.8__Gecko_20100722_Firefox_3.6.12
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], eax
mov dword [esp], str.InternetOpen__:__d_n
call fcn.0040ace7
test esi, esi
jne 0x406091
mov dword [esp], ebx
call fcn.0041afa8
jmp 0x406121
mov eax, ebx
test ebx, ebx
jne 0x40609c
mov eax, str._null_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], str.inetOpen:__http:___s_s____s____s__n
call fcn.0040ace7
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x483608
mov dword [esp + 0xc], 0x483608
movzx eax, word [ebp + 0x10]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.WININET.DLL_InternetConnectA
sub esp, 0x20
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x406129
mov dword [esp], str.InternetConnect___failed__n
call fcn.0040ace7
mov dword [esp], ebx
call fcn.0041afa8
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
push esi
or eax, 0xffffffff
jmp 0x40623f
mov edx, dword [ebp + 8]
cmp byte [edx], 0
je 0x40617c
test ebx, ebx
je 0x406173
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 4], 1
add ecx, 7
mov dword [esp], ecx
call sub.msvcrt.dll_calloc
mov edi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x483624
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call fcn.0041afa8
jmp 0x406192
mov dword [esp], 0x483628
jmp 0x40618b
test ebx, ebx
je 0x406188
mov dword [esp], ebx
call fcn.0041afa8
mov dword [esp], edi
call sub.msvcrt.dll__strdup
mov edi, eax
mov dword [esp + 0xc], edi
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], str.HttpOpenRequest:_host__s__method__s__path__s__n
call fcn.0040ace7
xor eax, eax
cmp dword [ebp + 0x10], 0x1bb
sete al
dec eax
and eax, 0xff800000
sub eax, 0x7b77c900
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HTTP_1.0
mov dword [esp + 8], edi
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_HttpOpenRequestA
sub esp, 0x20
mov ebx, eax
mov dword [esp], edi
call fcn.0041afa8
test ebx, ebx
jne 0x40622e
mov dword [esp], str.HttpOpenRequest___failed__n
call fcn.0040ace7
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
push ebx
jmp 0x406118
mov edx, dword [ebp + 8]
mov dword [edx + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret