Function at 0x101af590
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x84]
push ecx
push 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x64
call fcn.100653e0
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x4c
call fcn.100653e0
push eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x101af601
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
xor al, al
jmp 0x101af8a9
mov dword [ebp - 0x48], 4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x1f
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
mov dword [ebp - 0x28], 0x100
mov eax, dword [ebp - 0x28]
or eax, 0x2000
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
or ecx, 0x1000
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x68], 1
push 4
lea edx, [ebp - 0x28]
push edx
push 0x1f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebp - 0x28], 8
push 4
lea edx, [ebp - 0x28]
push edx
push 0x3f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp + 0xc]
call fcn.100061e0
movzx edx, al
test edx, edx
je 0x101af6a2
mov dword [ebp - 0x28], 0
push 4
lea eax, [ebp - 0x28]
push eax
push 0x53
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x101af6f5
mov dword [ebp - 0x28], 0x10000000
push 4
lea eax, [ebp - 0x28]
push eax
push 0x53
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
mov ecx, dword [ebp + 0x10]
call fcn.100653e0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100653e0
push eax
push 1
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x101af6f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp + 8]
imul eax, dword [edx + 0xa4], 0x3e8
push eax
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0xa4], 0x3e8
push edx
mov eax, dword [ebp + 8]
imul ecx, dword [eax + 0xa4], 0x3e8
push ecx
mov edx, dword [ebp + 8]
imul eax, dword [edx + 0xa4], 0x3e8
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov byte [ebp - 0x29], 0
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
call fcn.10006660
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
call fcn.10005d60
mov dword [ebp - 0x50], eax
jmp 0x101af768
mov ecx, dword [ebp - 0x34]
add ecx, 0x18
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x50]
je 0x101af7d3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
push 0
push str.Content_type
mov ecx, dword [ebp - 0x40]
call fcn.100061a0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
je 0x101af792
mov byte [ebp - 0x29], 1
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.101b4d33
add esp, 8
push 0x20000000
lea ecx, [ebp - 0x1c]
call fcn.100061f0
push eax
lea ecx, [ebp - 0x1c]
call fcn.100653e0
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x1c]
call fcn.1000d890
jmp 0x101af75f
movzx edx, byte [ebp - 0x29]
test edx, edx
jne 0x101af834
mov dword [ebp - 0x44], str.Content_type:_application_x_www_form_urlencoded
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 2
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x30]
mov ax, word [edx]
mov word [ebp - 0x36], ax
add dword [ebp - 0x30], 2
cmp word [ebp - 0x36], 0
jne 0x101af7f1
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x58]
sar ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
push 0x20000000
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [ebp - 0x74], eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7c]
push eax
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x101af8a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0x2f00
jne 0x101af88b
jmp 0x101af8a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0x2f0c
jne 0x101af89c
jmp 0x101af8a0
mov byte [ebp - 0x21], 0
jmp 0x101af8a6
mov byte [ebp - 0x21], 1
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret 0xc