Function at 0x100019ac
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbac
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xbaa]
mov word [ebp - 0xbac], bx
rep stosd dword es:[edi], eax
or dword [ebp - 4], 0xffffffff
push str.Content_type:_application_x_www_form_urlencoded_r_n
stosw word es:[edi], ax
lea eax, [ebp - 0xbac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xbac]
push str.Connection:_keep_alive_r_nAccept:___r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x3aa]
mov word [ebp - 0x3ac], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpTimeFromSystemTime]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x1ab]
mov byte [ebp - 0x1ac], bl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.10001e1b
add esp, 0xc
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0xbac]
push eax
lea eax, [ebp - 0xbac]
push str._sDate:__s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xaa]
mov word [ebp - 0xac], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xac]
push eax
call fcn.10001de6
add esp, 0x18
mov word [ebp - 0x14], 0x50
mov word [ebp - 0x12], 0x4f
mov word [ebp - 0x10], 0x53
push ebx
mov word [ebp - 0xe], 0x54
mov word [ebp - 0xc], bx
mov word [ebp - 0xa], bx
push ebx
push ebx
lea eax, [ebp - 0xac]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
jne 0x10001afb
or eax, 0xffffffff
jmp 0x10001cfa
lea eax, [ebp - 0xbac]
push 0x20000000
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xbac]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10001b2f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0xfffffffffffffffe
pop eax
jmp 0x10001cfa
mov esi, dword [ebp + 0x14]
lea eax, [esi + 0x8100]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp + 0x20]
cmp esi, ebx
mov dword [ebp + 8], edi
mov eax, dword [eax + 0x1c]
mov dword [edi + 4], 0x10050014
mov dword [ebp - 0x18], eax
mov dword [edi], eax
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x10], esi
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
jle 0x10001b99
cmp dword [ebp + 0x28], ebx
jne 0x10001b89
push esi
lea eax, [ebp - 0x18]
push dword [ebp + 0x10]
push 4
push eax
call fcn.10001e58
add esp, 0x10
push esi
lea eax, [edi + 0x14]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x14
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1ac]
push eax
call fcn.10001e58
add esp, 0x10
add esi, 0x14
push ebx
push esi
push esi
push edi
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10001bd0
mov dword [ebp - 4], 0xfffffffd
jmp 0x10001cdf
push ebx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10001bea
mov dword [ebp - 4], 0xfffffffc
jmp 0x10001cdf
cmp dword [ebp + 0x18], ebx
lea esi, [edi + 0x80]
jne 0x10001bf8
mov dword [ebp + 0x18], esi
mov edi, 0x8000
push edi
push ebx
push esi
mov dword [ebp + 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
push ebx
push eax
push esi
push ebx
push 5
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10001c2d
mov dword [ebp - 4], 0xfffffffb
jmp 0x10001cdc
mov eax, dword [ebp + 0x14]
push esi
mov byte [esi + eax], bl
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, edi
pop ecx
mov dword [ebp + 0x10], eax
ja 0x10001cd5
cmp eax, ebx
je 0x10001cd0
push edi
push ebx
push esi
mov dword [ebp + 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
push ebx
push eax
push esi
push ebx
push 0x13
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10001c7b
mov dword [ebp - 4], 0xfffffff9
jmp 0x10001cdc
mov eax, dword [ebp + 0x14]
push esi
mov byte [esi + eax], bl
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, 0xc8
pop ecx
jne 0x10001cdc
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x20], ebx
xor esi, esi
mov dword [eax], edi
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x18]
add eax, esi
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10001cc3
cmp dword [ebp + 0x20], ebx
jbe 0x10001ccc
add esi, dword [ebp + 0x20]
cmp esi, edi
je 0x10001cd0
jmp 0x10001c9d
xor esi, esi
mov dword [ebp - 4], 0xfffffff8
cmp esi, edi
jne 0x10001cdc
mov dword [ebp - 4], ebx
jmp 0x10001cdc
mov dword [ebp - 4], 0xfffffffa
mov edi, dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret