Function at 0x407a72
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, 0x14
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x407c68
cmp dword [ebp + 0x18], ebx
je 0x407c68
mov esi, dword [ebp + 0x14]
cmp esi, 1
je 0x407aae
cmp esi, ebx
jne 0x407c68
push ebx
push ebx
push ebx
push ebx
push str.XPD_IEOOP
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, 1
mov dword [ebp + 0x14], eax
jne 0x407ae3
push ebx
push 0x80c00000
jmp 0x407aed
cmp esi, ebx
jne 0x407b08
push ebx
push 0x80400000
push ebx
mov eax, 0x4199ce
push eax
push eax
push dword [ebp + 0x10]
push 0x41a5cc
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push dword [ebp + 0x18]
call fcn.0040bad0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push 0x2b
push edi
call esi
push dword [ebp + 0x1c]
call fcn.0040bad0
pop ecx
inc eax
push eax
push dword [ebp + 0x1c]
push 0x2c
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
je 0x407b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffd0fb
cmp eax, 0x14
ja 0x407b89
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x1f
push edi
mov dword [ebp + 8], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp + 0x10], 0x3100
push 4
lea eax, [ebp + 0x10]
push eax
push 0x1f
push edi
call esi
cmp dword [ebp - 8], 3
jge 0x407b89
inc dword [ebp - 8]
jmp 0x407b34
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x191
je 0x407bfb
sub eax, 6
je 0x407bd6
sub eax, 0x5d
jne 0x407c2a
push 0xa0000000
push 0xffffffffffffffff
push str.Accept_Encoding:_____gzip______deflate_r_n
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebp - 4], 3
jge 0x407c23
inc dword [ebp - 4]
jmp 0x407b34
push dword [ebp + 0x18]
call fcn.0040bad0
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push 0x2b
push edi
call esi
push dword [ebp + 0x1c]
call fcn.0040bad0
pop ecx
inc eax
push eax
push dword [ebp + 0x1c]
push 0x2c
jmp 0x407c1e
push dword [ebp + 0x18]
call fcn.0040bad0
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push 0x1c
push edi
call esi
push dword [ebp + 0x1c]
call fcn.0040bad0
pop ecx
inc eax
push eax
push dword [ebp + 0x1c]
push 0x1d
push edi
call esi
jmp 0x407bc8
mov dword [ebp + 8], 0x191
cmp edi, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x407c37
push edi
call esi
cmp dword [ebp + 0x14], ebx
je 0x407c41
push dword [ebp + 0x14]
call esi
cmp dword [ebp - 0xc], ebx
je 0x407c4b
push dword [ebp - 0xc]
call esi
cmp dword [ebp + 8], 1
je 0x407c63
cmp dword [ebp + 8], 0x191
je 0x407c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
jmp 0x407c6b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x18