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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x428729
push eax
mov eax, 0x1adc
mov dword fs:[0], esp
call fcn.0040c980
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x101]
mov byte [esp + 0x100], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x12c9]
mov byte [esp + 0x12c8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0xaa5]
mov byte [esp + 0xaa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x48]
mov ebp, dword [esp + 0x1b00]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x180]
xor esi, esi
mov dword [esp + 0x54], eax
mov eax, 0x80
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x12c8]
lea ecx, [esp + 0x100]
lea edx, [esp + 0x80]
mov ebx, 0x824
mov dword [esp + 0x70], eax
cmp ebp, esi
mov dword [esp + 0x1af4], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x58], 0x100
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x74], ebx
mov eax, 0x42a624
je 0x401bc0
mov eax, ebp
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x401f19
cmp dword [esp + 0x50], 3
jne 0x401f19
push esi
push esi
push esi
push esi
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x401f19
mov ecx, dword [esp + 0x5c]
push esi
push esi
lea edx, [esp + 0x88]
push 3
lea eax, [esp + 0x10c]
push edx
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x194]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x401f19
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
cmp eax, esi
lea edx, [esp + 0xaa4]
jne 0x401c4c
mov edi, 0x434148
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80200000
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x438644
lea ecx, [esp + 0xab4]
push str.HTTP_1.1
push ecx
push str.HEAD
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401f19
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x10]
push 0
stosb byte es:[edi], al
lea eax, [esp + 0x34]
lea ecx, [esp + 0x284]
push eax
push ecx
push 0x16
push edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x401f19
mov al, byte [esp + 0x1f]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00403990
lea edi, [esp + 0x280]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00403870
test al, al
je 0x401d4f
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x280]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
mov edi, str.filename
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1af4], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.filename
lea ecx, [esp + 0x2c]
call fcn.00403660
mov esi, eax
mov edi, 0x434154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x434154
lea ecx, [esp + 0x2c]
call fcn.00403660
cmp esi, dword [0x42a628]
je 0x401ef5
sub eax, esi
lea ecx, [esp + 0x34]
push eax
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.004031e0
mov edx, dword [0x42a628]
mov ebp, dword [esp + 0x1b0c]
push edx
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x1b00], 2
call fcn.00403460
mov eax, dword [esp + 0x38]
mov byte [esp + 0x1af4], 1
test eax, eax
je 0x401e02
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401df9
cmp al, 0xff
je 0x401df9
dec al
mov byte [ecx], al
jmp 0x401e02
push ecx
call fcn.0041e125
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, ebp
add eax, 0xfffffff7
push eax
lea eax, [esp + 0x38]
push 9
push eax
call fcn.004031e0
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x42a628]
mov ebx, eax
mov byte [esp + 0x1af4], 3
cmp ecx, ebx
jae 0x401e32
mov ebx, ecx
cmp ebp, esi
jne 0x401e4c
push ecx
push ebx
mov ecx, ebp
call fcn.00403a80
push 0
push 0
mov ecx, ebp
call fcn.00403a80
jmp 0x401ec9
test ebx, ebx
jbe 0x401e94
cmp ebx, eax
jne 0x401e94
mov eax, dword [esi + 4]
test eax, eax
jne 0x401e60
mov eax, 0x42a624
cmp byte [eax - 1], 0xfe
jae 0x401e94
push 1
mov ecx, ebp
call fcn.00403990
mov eax, dword [esi + 4]
test eax, eax
jne 0x401e7b
mov eax, 0x42a624
mov dword [ebp + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x401ec9
push 1
push ebx
mov ecx, ebp
call fcn.00403870
test al, al
je 0x401ec9
mov esi, dword [esi + 4]
test esi, esi
jne 0x401eae
mov esi, 0x42a624
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004037d0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x401eee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401ee5
cmp al, 0xff
je 0x401ee5
dec al
mov byte [ecx], al
jmp 0x401eee
push ecx
call fcn.0041e125
add esp, 4
mov ebp, dword [esp + 0x1b00]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x401f19
mov al, byte [ecx - 1]
test al, al
je 0x401f0f
cmp al, 0xff
je 0x401f0f
dec al
mov byte [ecx - 1], al
jmp 0x401f19
dec ecx
push ecx
call fcn.0041e125
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401f34
mov ecx, eax
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401f3f
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401f4a
push eax
call esi
test ebp, ebp
je 0x401f6a
mov al, byte [ebp - 1]
test al, al
je 0x401f60
cmp al, 0xff
je 0x401f60
dec al
mov byte [ebp - 1], al
jmp 0x401f6a
dec ebp
push ebp
call fcn.0041e125
add esp, 4
mov ecx, dword [esp + 0x1aec]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ae8
ret