Function at 0x408589
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x80
mov ebx, dword [ebp - 8]
add ebx, 0x2c
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0045d5a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4085d2
push ebx
call fcn.00458e10
add esp, 4
pop eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0x30
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x100
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40860e
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
push 0
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x408640
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40865d
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4086fb
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40870e
push ebx
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40871e
push ebx
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40872e
push ebx
call fcn.00458e10
add esp, 4
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x40875b
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
cmp dword [ebp + 0x10], 0
je 0x408773
cmp dword [ebp + 0xc], 0
je 0x408773
xor eax, eax
jmp 0x408778
mov eax, 1
test eax, eax
je 0x408787
mov dword [ebp + 0xc], 0xbb8
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push 4
lea eax, [ebp + 0xc]
push eax
push 2
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4087c2
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40880c
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4087fc
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push 4
lea eax, [ebp + 0xc]
push eax
push 5
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408847
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x408891
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408881
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push 4
lea eax, [ebp + 0xc]
push eax
push 6
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4088cc
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x408916
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408906
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
push 0
push 3
push dword [ebp - 0x24]
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
mov ebx, dword [ebp - 0x18]
push dword [ebx]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4089bf
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4089d2
push ebx
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4089e2
push ebx
call fcn.00458e10
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x408a3c
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408a2c
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 0x800
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push 0x4000000
push 0x80000301
push 0
push 0x10000000
push 0x80000301
push 0
push SysReAllocString
push 6
mov ebx, 0xc8
call fcn.0045d580
add esp, 0x4c
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x2c
mov dword [ebp - 0x18], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0
mov ebx, dword [ebp - 0x24]
push dword [ebx]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push str.HTTP_1.1
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push str.HEAD
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x408b4d
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408b60
push ebx
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408b70
push ebx
call fcn.00458e10
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x408bf7
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408bba
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408be7
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d5e0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x408c57
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408c6a
push ebx
call fcn.00458e10
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x408d0b
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408ca1
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408cce
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408cfb
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0xc]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 4
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 0x13
push 0x80000301
push 0
push 0x20000000
push 2
mov ebx, 0xc8
call fcn.0045d580
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x408da9
push 6
call fcn.00458e16
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x408e4d
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408de3
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408e10
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408e3d
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x4090ad
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408e7a
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408ea7
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x408ed4
push 6
call fcn.00458e16
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0xc8
je 0x408f08
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0xce
je 0x408f08
xor eax, eax
jmp 0x408f0d
mov eax, 1
jmp 0x4090ad
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.0045f850
add esp, 0x10
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4090e8
push ebx
call fcn.00458e10
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4090fc
push ebx
call fcn.00458e10
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x409110
push ebx
call fcn.00458e10
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x409124
push ebx
call fcn.00458e10
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x409138
push ebx
call fcn.00458e10
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40914c
push ebx
call fcn.00458e10
add esp, 4
pop ebx
call fcn.00458e10
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00458e10
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc