Function at 0x1000a720
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002fad6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10045068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0x28]
call fcn.10004eb0
mov dword [ebp - 4], 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf8], esp
mov eax, dword [ebp + 0xc]
push eax
call fcn.10002cb0
lea ecx, [ebp - 0x88]
push ecx
call fcn.1000a110
add esp, 0x1c
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xd4]
call fcn.10002ab0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000a590
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.10002b00
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x100], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.10002cb0
lea eax, [ebp - 0xa0]
push eax
call fcn.1000a210
add esp, 0x1c
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xdc]
call fcn.10002ab0
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.1000a590
add esp, 0xc
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.10002b00
push 0
push 0
push 0
push 0
push 0x100409cc
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xc8], eax
push 0
push 0x1bb
lea ecx, [ebp - 0x70]
call fcn.10005a40
push eax
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x108], 0x800000
push 0x800000
push 0
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.10005a40
push eax
push str.POST
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xe0], 0x3300
push 4
lea edx, [ebp - 0xe0]
push edx
push 0x1f
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp + 0x10]
call fcn.10002ab0
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xb4]
mov cl, byte [eax]
mov byte [ebp - 0xa5], cl
add dword [ebp - 0xb4], 1
cmp byte [ebp - 0xa5], 0
jne 0x1000a8f1
mov edx, dword [ebp - 0xb4]
sub edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb8], eax
push 0
mov ecx, dword [ebp + 0x14]
call fcn.10002ab0
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.1000a590
add esp, 0xc
mov byte [ebp - 4], 7
push 0
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.10005a40
push eax
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x1000ab90
push 0
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000aa1e
push 0x1000e620
push str._in_WinHttpQueryDataAvailable.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10040a34
push 0x10046090
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000bc90
push eax
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000be20
jmp 0x1000ab69
mov eax, dword [ebp - 0xac]
add eax, 1
push eax
call fcn.100142a7
add esp, 4
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
jne 0x1000aa7d
push 0x1000e620
push str.Out_of_memory
push 0x10046090
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000be20
mov dword [ebp - 0xac], 0
jmp 0x1000ab69
mov edx, dword [ebp - 0xac]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xa4]
push eax
call fcn.10016600
add esp, 0xc
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000aafa
push 0x1000e620
push str._in_WinHttpReadData.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error
push 0x10046090
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000bc90
push eax
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000be20
jmp 0x1000ab37
push 0x1000e620
mov edx, dword [ebp - 0xa4]
push edx
push str.Response:
push 0x10045f98
call fcn.1000e300
add esp, 8
push eax
call fcn.1000e300
add esp, 8
mov ecx, eax
call fcn.1000be20
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000bb20
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
push edx
call fcn.10014272
add esp, 4
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0xac], 0
ja 0x1000a9bd
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002b50
mov ecx, dword [ebp - 0xcc]
or ecx, 1
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.10005af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005af0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.10005af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10014230
mov esp, ebp
pop ebp
ret