Function at 0x10020390
Capabilities:
Check http status code
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034814
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
push edi
lea edi, [ebp - 0x25c]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002870
mov dword [ebp - 4], 0
push str.User_Agent_tMozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
lea ecx, [ebp - 0x50]
call fcn.10002870
mov byte [ebp - 4], 1
mov esi, esp
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10001450
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp esi, esp
call fcn.10028400
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10020450
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001710
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x24c]
jmp 0x100207b2
lea ecx, [ebp - 0x80]
call fcn.100059b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.100059b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.10020060
add esp, 0x10
mov word [ebp - 0xbc], 0x50
cmp dword [ebp - 0xb0], 4
jne 0x100204a4
mov word [ebp - 0xbc], 0x1bb
mov esi, esp
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x80]
call fcn.10001450
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp esi, esp
call fcn.10028400
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x1002053c
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.10001710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.10001710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001710
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
jmp 0x100207b2
mov esi, esp
push 0
push 0x84200000
push 0
push 0
push 0
lea ecx, [ebp - 0xa4]
call fcn.10001450
push eax
push 0x10036d98
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp esi, esp
call fcn.10028400
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x100205da
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.10001710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.10001710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001710
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
jmp 0x100207b2
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002657d
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp esi, esp
call fcn.10028400
push 0x16
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call fcn.10020210
add esp, 0xc
mov byte [ebp - 4], 4
push 0x13
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.10020210
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.10001040
test eax, eax
je 0x10020665
lea ecx, [ebp - 0x11c]
call fcn.10001450
push eax
call fcn.100284dc
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xc8
jne 0x10020702
push 5
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.10020210
add esp, 0xc
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.10009a80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x220]
call fcn.10001710
lea ecx, [ebp - 0x11c]
call fcn.10001040
test eax, eax
je 0x10020702
lea ecx, [ebp - 0x11c]
call fcn.10001450
push eax
call fcn.100284e1
add esp, 4
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0xc8], 0
je 0x10020721
mov esi, esp
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.10028400
cmp dword [ebp - 0x5c], 0
je 0x1002073a
mov esi, esp
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.10028400
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x1f8], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11c]
call fcn.10001710
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf8]
call fcn.10001710
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.10001710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.10001710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001710
mov eax, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x1f8]
push edx
mov ecx, ebp
push eax
lea edx, [0x100207e4]
call fcn.10028423
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x25c
cmp ebp, esp
call fcn.10028400
mov esp, ebp
pop ebp
ret