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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push dword [ebp + 8]
call fcn.00408ac5
and eax, 1
xor eax, 1
test eax, eax
je 0x407faf
mov eax, 0
jmp 0x408a9d
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x400
push 0x80000301
push 0
push 0x80000
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 7
mov ebx, 0xc8
call fcn.00453d90
add esp, 0x58
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x4080ad
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4080c0
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4080d0
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4080e0
push ebx
call fcn.0044f0d8
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.00408b6d
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408111
push ebx
call fcn.0044f0d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00408fba
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x408132
mov eax, dword [ebp - 8]
jmp 0x408a9d
cmp dword [ebp + 0x10], 0
jne 0x408143
mov dword [ebp + 0xc], 0xbb8
lea eax, [ebp + 0xc]
push eax
call fcn.00409193
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 2
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40817e
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4081b7
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4081ad
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
lea eax, [ebp + 0xc]
push eax
call fcn.00409193
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 5
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4081f2
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40822b
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408221
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
lea eax, [ebp + 0xc]
push eax
call fcn.00409193
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 6
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x408266
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40829f
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408295
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push 0
push 3
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40831e
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408331
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408341
push ebx
call fcn.0044f0d8
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40837d
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408373
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push dword [ebp + 8]
call fcn.004091ad
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
mov eax, 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0x4a3bf2
push dword [ebp - 0x30]
push 0x4a3bfb
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x40840e
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408421
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x408431
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x408441
push ebx
call fcn.0044f0d8
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40849f
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408473
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408495
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4084f4
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x408507
push ebx
call fcn.0044f0d8
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x408840
mov dword [ebp - 0x30], esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408530
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2f0d
je 0x4085b0
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408562
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408584
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4085a6
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
lea eax, [ebp - 4]
push eax
call fcn.00409193
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
mov eax, 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
push 0x1f
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4085f2
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40866f
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408621
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408643
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408665
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0xc8
call fcn.00453d90
add esp, 0x28
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409193
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 0x1f
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4086e1
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40875e
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408710
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408732
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408754
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00453c60
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4087b3
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4087c6
push ebx
call fcn.0044f0d8
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x408840
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4087f2
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408814
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408836
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
mov dword [ebp - 0x20], 0
push 0x80000301
push 0
push 0x14
push 1
mov ebx, 0x1bc
call fcn.004543b0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40887c
push ebx
call fcn.0044f0d8
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x20]
mov eax, 0x14
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40889c
add eax, 8
push eax
push 0x13
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4088c1
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40893e
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4088f0
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408912
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408934
push 6
call fcn.0044f0de
add esp, 4
mov eax, 0
jmp 0x408a9d
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push VariantCopy
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408963
mov eax, 0x476373
push eax
push 3
mov ebx, 0x19c
call fcn.00455070
add esp, 0x28
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ecx, reloc.WS2_32.dll_connect
jne 0x40899b
test eax, eax
jne 0x4089ac
mov eax, 0x4762fd
jmp 0x4089ac
cmp ecx, 0x80000005
jne 0x4089ac
test eax, eax
jne 0x4089ac
mov eax, 0x476373
push ecx
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.00454e30
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, reloc.WS2_32.dll_connect
je 0x4089db
cmp ecx, 0x80000005
jne 0x4089eb
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4089eb
push ebx
call fcn.0044f0d8
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc8
je 0x408a0f
cmp dword [ebp - 0x28], 0xce
je 0x408a0f
xor eax, eax
jmp 0x408a14
mov eax, 1
test eax, eax
je 0x408a28
mov dword [ebp - 0x2c], 1
jmp 0x408a2f
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408a51
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408a73
push 6
call fcn.0044f0de
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x408a95
push 6
call fcn.0044f0de
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x408a9d
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408aae
push ebx
call fcn.0044f0d8
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408abe
push ebx
call fcn.0044f0d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc