Function at 0x404a20
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549cc3
mov eax, dword fs:[0]
push eax
mov eax, 0x1b70
call fcn.00531c50
mov eax, dword [0x5aaef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
xor ebx, ebx
mov dword [ebp - 4], 0
push 0xff
lea eax, [ebp - 0x28f]
mov byte [ebp - 0x290], bl
push ebx
xor edi, edi
push eax
mov dword [ebp - 0x1b38], edi
call fcn.00531650
push 0x7f
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push ebx
push eax
call fcn.00531650
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
push ebx
push eax
call fcn.00531650
push 0x823
lea eax, [ebp - 0x1afb]
mov byte [ebp - 0x1afc], bl
push ebx
push eax
call fcn.00531650
push 0x823
lea eax, [ebp - 0xab3]
mov byte [ebp - 0xab4], bl
push ebx
push eax
call fcn.00531650
push 0x38
lea eax, [ebp - 0x1b74]
push ebx
push eax
call fcn.00531650
lea eax, [ebp - 0x290]
mov dword [ebp - 0x1b78], 0x3c
mov dword [ebp - 0x1b68], eax
lea ecx, [ebp - 0x1b78]
add esp, 0x48
mov dword [ebp - 0x1b64], pe_nt_image_headers32
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1b5c], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1b54], eax
lea eax, [ebp - 0x1afc]
push ecx
mov dword [ebp - 0x1b4c], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ebx
push ebx
push eax
mov dword [ebp - 0x1b58], 0x80
mov dword [ebp - 0x1b50], 0x80
mov dword [ebp - 0x1b48], 0x824
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x404e46
cmp dword [ebp - 0x1b6c], 3
jne 0x404e46
push ebx
push ebx
push ebx
push ebx
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x404e46
push ebx
push ebx
push 3
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x1b60]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1b38], eax
test eax, eax
je 0x404e46
cmp dword [ebp - 0x1b48], ebx
je 0x404bf5
mov ecx, dword [ebp - 0x1b4c]
lea edx, [ebp - 0xab4]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404be0
mov eax, dword [ebp - 0x1b38]
jmp 0x404c01
mov ecx, 0x2f
mov word [ebp - 0xab4], cx
push 0
push 0x80200000
push 0
push 0x55ae30
push str.HTTP_1.1
lea ecx, [ebp - 0xab4]
push ecx
push str.HEAD
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404e46
push 0x823
lea eax, [ebp - 0x12d7]
mov byte [ebp - 0x12d8], 0
push 0
push eax
call fcn.00531650
add esp, 0xc
mov dword [ebp - 0x1b3c], 0x824
lea eax, [ebp - 0x1b3c]
push 0
push eax
lea eax, [ebp - 0x12d8]
push eax
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404e46
lea eax, [ebp - 0x12d8]
push eax
lea ecx, [ebp - 0x1b2c]
call fcn.004026a0
push 0
push str.filename
lea ecx, [ebp - 0x1b2c]
mov byte [ebp - 4], 1
call fcn.00406de0
push eax
push 0x55b118
lea ecx, [ebp - 0x1b2c]
mov dword [ebp - 0x1b34], eax
call fcn.00406de0
mov ecx, eax
mov eax, dword [ebp - 0x1b34]
cmp eax, 0xffffffff
je 0x404d97
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x1b14]
push eax
lea ecx, [ebp - 0x1b2c]
call fcn.00407260
push eax
mov ecx, esi
call fcn.00403750
lea ecx, [ebp - 0x1b14]
call fcn.00402700
mov eax, dword [esi + 0x10]
mov ecx, esi
add eax, 0xfffffff7
push eax
push 9
lea eax, [ebp - 0x1b14]
push eax
call fcn.00407260
push eax
mov ecx, esi
call fcn.00403750
lea ecx, [ebp - 0x1b14]
call fcn.00402700
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x404d37
mov eax, dword [esi]
jmp 0x404d39
mov eax, esi
cmp byte [eax], 0x22
jne 0x404d58
cmp ecx, 0x10
jb 0x404d47
mov eax, dword [esi]
jmp 0x404d49
mov eax, esi
push eax
lea eax, [ebp - 0x1b34]
mov ecx, esi
push eax
call fcn.00406d00
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x404d65
mov eax, dword [esi]
jmp 0x404d67
mov eax, esi
cmp byte [eax + ecx - 1], 0x22
jne 0x404e3b
lea eax, [ebp - 0x1b34]
mov ecx, esi
push eax
call fcn.00406cd0
mov ecx, esi
dec dword [eax]
push dword [eax]
lea eax, [ebp - 0x1b7c]
push eax
call fcn.00406d00
jmp 0x404e3b
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1b30]
mov byte [ebp - 0x1b30], 0x2f
push eax
lea ecx, [ebp + 8]
call fcn.00406f80
cmp eax, 0xffffffff
je 0x404de3
mov ecx, dword [ebp + 0x18]
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
lea eax, [ebp - 0x1b14]
push eax
lea ecx, [ebp + 8]
call fcn.00407260
push eax
mov ecx, esi
call fcn.00403750
lea ecx, [ebp - 0x1b14]
call fcn.00402700
jmp 0x404e3b
push 0
call fcn.00531bf9
push eax
call fcn.00531b57
push 0x7f
lea eax, [ebp - 0x18f]
mov byte [ebp - 0x190], 0
push 0
push eax
call fcn.00531650
add esp, 0x14
lea eax, [ebp - 0x190]
push 0xa
push eax
call fcn.00531b36
push eax
call fcn.0054994c
add esp, 0xc
lea eax, [ebp - 0x190]
mov ecx, esi
push eax
call fcn.00403790
push str..exe
mov ecx, esi
call fcn.004037d0
lea ecx, [ebp - 0x1b2c]
call fcn.00402700
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x404e5b
push ebx
call esi
mov eax, dword [ebp - 0x1b38]
test eax, eax
je 0x404e68
push eax
call esi
test edi, edi
je 0x404e6f
push edi
call esi
cmp dword [ebp + 0x1c], 0x10
jb 0x404e80
push dword [ebp + 8]
call fcn.0040b2d3
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052fe70
mov esp, ebp
pop ebp
ret