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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 8
call fcn.004513aa
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x3c
call fcn.004513aa
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
push 0x1c
call fcn.004513aa
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
call fcn.0040880e
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4a7cfc
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x91c
call fcn.00457c00
add esp, 0x28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4085b8
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.MSXML2.XMLHTTP
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x91c
call fcn.00457c00
add esp, 0x28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4085b8
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Microsoft.XMLHTTP
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x91c
call fcn.00457c00
add esp, 0x28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4085b8
call fcn.0040883e
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x3c
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.00455b40
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 0x407e2d
push ebx
call fcn.004513b0
add esp, 4
pop eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
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 pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.00455b40
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 0x407e85
push ebx
call fcn.004513b0
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], pe_nt_image_headers32
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
nop
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
nop
nop
nop
nop
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x407ee6
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
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.00455b80
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455b80
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455b80
add esp, 0x10
mov dword [ebp - 0x1c], eax
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
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407f82
push ebx
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407f92
push ebx
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407fa2
push ebx
call fcn.004513b0
add esp, 4
mov eax, dword [ebp - 0x20]
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 0x407fcf
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
cmp dword [ebp + 0x10], 0
je 0x407fe7
cmp dword [ebp + 0xc], 0
je 0x407fe7
xor eax, eax
jmp 0x407fec
mov eax, 1
test eax, eax
je 0x407ffb
mov dword [ebp + 0xc], 0xbb8
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
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
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408056
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
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
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4080b1
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
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
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40810c
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
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.00455b80
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455b80
add esp, 0x10
mov dword [ebp - 0x24], eax
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
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4081b3
push ebx
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4081c3
push ebx
call fcn.004513b0
add esp, 4
mov eax, dword [ebp - 0x28]
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 0x408208
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
push 0x800
push 0x80000301
push 0
push pe_nt_image_headers32
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.00455b20
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.00455b80
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455b80
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x24], ebx
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
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408317
push ebx
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408327
push ebx
call fcn.004513b0
add esp, 4
mov eax, dword [ebp - 0x28]
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 0x408384
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
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.00455b80
add esp, 0x10
mov dword [ebp - 0x14], eax
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
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4083e2
push ebx
call fcn.004513b0
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x408444
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
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.00455b20
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
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
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x408532
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0xc8
je 0x4085ae
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0xce
je 0x4085ae
xor eax, eax
jmp 0x4085b3
mov eax, 1
jmp 0x408753
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push reloc.WS2_32.dll_connect
push 0
push str.HEAD
push reloc.WS2_32.dll_connect
push 0
push str.Open
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x94c
call fcn.004580b0
add esp, 0x40
push 0x80000301
push 0
push 0x1388
push 0x80000301
push 0
push 0x1f40
push 0x80000301
push 0
push 0x1388
push 0x80000301
push 0
push 0x1388
push reloc.WS2_32.dll_connect
push 0
push str.SetTimeouts
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x94c
call fcn.004580b0
add esp, 0x4c
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x94c
call fcn.004580b0
add esp, 0x28
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Status
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x934
call fcn.00457e10
add esp, 0x28
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
call fcn.00401131
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0xc8
je 0x408706
mov ebx, dword [ebp - 0xc]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0xce
je 0x408706
xor eax, eax
jmp 0x40870b
mov eax, 1
test eax, eax
je 0x408722
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 1
push 0x10030
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x924
call fcn.00457de0
add esp, 0x10
call fcn.0040883e
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
jmp 0x408753
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.00457de0
add esp, 0x10
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40878e
push ebx
call fcn.004513b0
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4087a2
push ebx
call fcn.004513b0
add esp, 4
pop ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4087b6
push ebx
call fcn.004513b0
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4087ca
push ebx
call fcn.004513b0
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4087de
push ebx
call fcn.004513b0
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4087f2
push ebx
call fcn.004513b0
add esp, 4
pop ebx
call fcn.004513b0
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004513b0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc