Function at 0x408108
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.00455fd0
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 0x408151
push ebx
call fcn.00451838
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 0x40818d
push 6
call fcn.0045183e
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 0x4081bf
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4081dc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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.00456010
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00456010
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00456010
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 0x40827a
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40828d
push ebx
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40829d
push ebx
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4082ad
push ebx
call fcn.00451838
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 0x4082da
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
cmp dword [ebp + 0x10], 0
je 0x4082f2
cmp dword [ebp + 0xc], 0
je 0x4082f2
xor eax, eax
jmp 0x4082f7
mov eax, 1
test eax, eax
je 0x408306
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 0x408341
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40838b
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 0x40837b
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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 0x4083c6
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x408410
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 0x408400
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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 0x40844b
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x408495
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 0x408485
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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.00456010
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00456010
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 0x40853e
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408551
push ebx
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408561
push ebx
call fcn.00451838
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 0x4085bb
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 0x4085ab
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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 connect
push 6
mov ebx, 0xc8
call fcn.00455fb0
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.00456010
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00456010
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 0x4086cc
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4086df
push ebx
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4086ef
push ebx
call fcn.00451838
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 0x408776
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 0x408739
push 6
call fcn.0045183e
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 0x408766
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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.00456010
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 0x4087d6
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4087e9
push ebx
call fcn.00451838
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x40888a
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 0x408820
push 6
call fcn.0045183e
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 0x40884d
push 6
call fcn.0045183e
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 0x40887a
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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.00455fb0
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 0x408928
push 6
call fcn.0045183e
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4089cc
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 0x408962
push 6
call fcn.0045183e
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 0x40898f
push 6
call fcn.0045183e
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 0x4089bc
push 6
call fcn.0045183e
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408c2c
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 0x4089f9
push 6
call fcn.0045183e
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 0x408a26
push 6
call fcn.0045183e
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 0x408a53
push 6
call fcn.0045183e
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 0x408a87
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0xce
je 0x408a87
xor eax, eax
jmp 0x408a8c
mov eax, 1
jmp 0x408c2c
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.00458270
add esp, 0x10
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408c67
push ebx
call fcn.00451838
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408c7b
push ebx
call fcn.00451838
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408c8f
push ebx
call fcn.00451838
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408ca3
push ebx
call fcn.00451838
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408cb7
push ebx
call fcn.00451838
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x408ccb
push ebx
call fcn.00451838
add esp, 4
pop ebx
call fcn.00451838
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00451838
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc