Function at 0x418428
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 0x41844f
mov dword [ebp - 4], eax
jmp 0x4184fb
cmp word [0x42cb20], bx
jne 0x4184f4
mov al, byte [0x42c470]
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 0x4184eb
lea eax, [ebp - 0x83c]
test eax, eax
jne 0x4184a3
xor edi, edi
jmp 0x4184d8
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.0041f330
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 0x42cb20
push edi
call fcn.00414b51
add esp, 0xc
cmp word [0x42cb20], bx
je 0x4184fb
mov dword [ebp - 4], 0x42cb20
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 0x418662
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 0x418548
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 0x418563
mov eax, dword [esi + 0x20]
add eax, 0x2048
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x418583
mov eax, dword [ebp - 0xc]
add eax, 0x60610
push eax
call edi
test eax, eax
pop ecx
je 0x418583
mov eax, dword [ebp - 0xc]
add eax, 0x60610
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x4185a3
mov eax, dword [ebp - 0xc]
add eax, 0x60710
push eax
call edi
test eax, eax
pop ecx
je 0x4185a3
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 0x4185b1
mov dword [ebp - 8], eax
push 0x416b89
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 0x418662
mov eax, dword [ebp - 0xc]
add eax, 0x60810
push eax
mov dword [ebp + 8], eax
call edi
test eax, eax
pop ecx
jbe 0x41865d
cmp dword [ebp + 8], ebx
push 3
pop edi
mov dword [ebp - 0x18], edi
jne 0x418612
mov dword [ebp - 0x14], ebx
jmp 0x418645
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.0041f330
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], 0x42c470
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 1
pop eax
jmp 0x418664
xor eax, eax
lea esp, [ebp - 0x848]
pop edi
pop esi
pop ebx
leave
ret 4