Function at 0x41206f
Capabilities:
Connect to http server
Create http request
Get file size
Get http content length
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8c
mov eax, dword [ebp + 8]
cmp byte [eax + 7], 0xff
jne 0x412083
mov eax, dword [eax]
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x81
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4120ad
push 1
pop eax
jmp 0x4122d3
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
pop edi
lea eax, [ebp - 4]
push edi
push eax
push 2
push ebx
mov dword [ebp - 4], 0x7530
call esi
lea eax, [ebp - 4]
push edi
push eax
push 6
push ebx
call esi
lea eax, [ebp - 4]
push edi
push eax
push 5
push ebx
call esi
push 0x3c
lea eax, [ebp - 0x8c]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x88c]
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, 0x400
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc8c]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x60], ecx
cmp byte [eax + 7], 0xff
jne 0x412143
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push ebx
push ebx
push str.StubInstaller
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4122cf
push ebx
push ebx
push 3
push ebx
push ebx
lea ecx, [ebp - 0x88c]
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4122c6
push ebx
lea ecx, [ebp - 0x28]
push ebx
push ecx
push ebx
lea ecx, [ebp - 0xc8c]
push ebx
push ecx
push str.HEAD
push eax
mov dword [ebp - 0x28], 0x43e3fc
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0xc], esi
je 0x4122bd
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4122b4
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], edi
call esi
cmp dword [ebp - 0x10], 0x130
je 0x4122b4
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call esi
test eax, eax
je 0x412235
cmp dword [ebp + 8], edi
mov eax, dword [ebp - 0xc]
je 0x412229
cmp eax, ebx
jbe 0x412235
cmp dword [ebp - 0x14], eax
je 0x412235
mov dword [ebp - 8], 1
mov esi, str.Last_Modified
lea edi, [ebp - 0x48c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xfc
xor eax, eax
lea edi, [ebp - 0x47e]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp - 0x48c]
push eax
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4122b4
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.WININET.dll_InternetTimeToSystemTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x4122b4
mov dword [ebp - 8], 1
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8