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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
lea eax, [ecx + 0x61858]
xor ebx, ebx
push esi
cmp word [eax], bx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
je 0x40e587
mov dword [ebp - 4], eax
jmp 0x40e633
cmp word [0x422544], bx
jne 0x40e62c
mov al, byte [0x422028]
mov ecx, 0x208
mov byte [ebp - 0x83c], al
xor eax, eax
lea edi, [ebp - 0x83b]
mov dword [ebp - 8], 0x823
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push ebx
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x40e623
lea eax, [ebp - 0x83c]
test eax, eax
jne 0x40e5db
xor edi, edi
jmp 0x40e610
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00412450
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x83c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x824
push 0x422544
push edi
call fcn.00411062
add esp, 0xc
cmp word [0x422544], bx
je 0x40e633
mov dword [ebp - 4], 0x422544
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x40e79a
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
add eax, 0x2348
mov dword [ebp - 4], ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], 3
call edi
test eax, eax
pop ecx
je 0x40e680
mov eax, dword [esi + 0x20]
add eax, 0x2348
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
add eax, 0x2048
push eax
call edi
test eax, eax
pop ecx
je 0x40e69b
mov eax, dword [esi + 0x20]
add eax, 0x2048
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x40e6bb
mov eax, dword [ebp - 0xc]
add eax, 0x60610
push eax
call edi
test eax, eax
pop ecx
je 0x40e6bb
mov eax, dword [ebp - 0xc]
add eax, 0x60610
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x40e6db
mov eax, dword [ebp - 0xc]
add eax, 0x60710
push eax
call edi
test eax, eax
pop ecx
je 0x40e6db
mov eax, dword [ebp - 0xc]
add eax, 0x60710
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x20]
push 1
pop eax
cmp dword [ecx + 4], eax
jne 0x40e6e9
mov dword [ebp - 8], eax
push 0x40ccca
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 0xc]
push esi
mov eax, dword [esi + 0x20]
push dword [ecx + 0x26d8]
mov cx, word [eax]
add eax, 0x2148
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40e79a
mov eax, dword [ebp - 0xc]
add eax, 0x60810
push eax
mov dword [ebp + 8], eax
call edi
test eax, eax
pop ecx
jbe 0x40e795
cmp dword [ebp + 8], ebx
push 3
pop edi
mov dword [ebp - 0x18], edi
jne 0x40e74a
mov dword [ebp - 0x14], ebx
jmp 0x40e77d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, edi
and al, 0xfc
call fcn.00412450
mov edi, esp
push ebx
push ebx
push dword [ebp - 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x10], 0x422028
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 1
pop eax
jmp 0x40e79c
xor eax, eax
lea esp, [ebp - 0x848]
pop edi
pop esi
pop ebx
leave
ret 4