Function at 0x10001fe0
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, 0xbb8
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xbb6]
mov word [ebp - 0xbb8], bx
rep stosd dword es:[edi], eax
or dword [ebp - 4], 0xffffffff
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x3b6]
mov word [ebp - 0x3b8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpTimeFromSystemTime]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x1b7]
mov byte [ebp - 0x1b8], bl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x3b8]
push eax
call fcn.10002553
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0xbb8]
push eax
lea eax, [ebp - 0xbb8]
push str._sDate:__s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0xbb8]
push str.Accept:___r_nConnection:_keep_alive_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xb6]
mov word [ebp - 0xb8], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xb8]
push eax
call fcn.1000251e
pop ecx
mov word [ebp - 0x14], 0x50
pop ecx
mov word [ebp - 0x12], 0x4f
push ebx
push ebx
push ebx
mov word [ebp - 0x10], 0x53
mov word [ebp - 0xe], 0x54
mov word [ebp - 0xc], bx
mov word [ebp - 0xa], bx
push ebx
lea eax, [ebp - 0xb8]
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 0x1000211f
or eax, 0xffffffff
jmp 0x100023b2
lea eax, [ebp - 0xbb8]
push 0x20000000
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xbb8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10002153
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0xfffffffffffffffe
pop eax
jmp 0x100023b2
mov edi, dword [ebp + 0x14]
lea eax, [edi + 0x9080]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [ebp + 0x20]
cmp edi, ebx
mov dword [ebp + 0x14], esi
mov eax, dword [eax + 0x1c]
mov dword [esi + 4], 0x10050017
mov dword [ebp - 0x18], eax
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x10], edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
jle 0x100021d0
cmp dword [ebp + 0x28], ebx
jne 0x100021c0
push edi
lea eax, [ebp - 0x1b8]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.1000264d
push edi
lea eax, [ebp - 0x18]
push dword [ebp + 0x10]
push 4
push eax
call fcn.1000264d
add esp, 0x20
push edi
lea eax, [esi + 0x14]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x14
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x1b8]
push eax
call fcn.1000264d
mov ecx, dword [ebp + 0x20]
add esp, 0x10
add edi, 0x14
cmp dword [ecx + 0xc84], 0xfacdeadc
jne 0x1000221c
mov eax, dword [ecx + 0xcf0]
cmp eax, ebx
jbe 0x1000221c
lea edx, [ecx + 0xcc8]
push ebx
add ecx, 0xc88
push edx
push ecx
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
push ebx
push edi
push edi
push esi
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1000223b
mov dword [ebp - 4], 0xfffffffd
jmp 0x1000234a
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10002255
mov dword [ebp - 4], 0xfffffffc
jmp 0x1000234a
cmp dword [ebp + 0x18], ebx
lea edi, [esi + 0x80]
jne 0x10002263
mov dword [ebp + 0x18], edi
mov esi, 0x8000
push esi
push ebx
push edi
mov dword [ebp + 0x24], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x24]
push ebx
push eax
push edi
push ebx
push 5
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10002298
mov dword [ebp - 4], 0xfffffffb
jmp 0x10002347
mov eax, dword [ebp + 0x24]
push edi
mov byte [edi + eax], bl
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
ja 0x10002340
cmp eax, ebx
je 0x1000233b
push esi
push ebx
push edi
mov dword [ebp + 0x24], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x24]
push ebx
push eax
push edi
push ebx
push 0x13
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100022e6
mov dword [ebp - 4], 0xfffffff9
jmp 0x10002347
mov eax, dword [ebp + 0x24]
push edi
mov byte [edi + eax], bl
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, 0xc8
pop ecx
jne 0x10002347
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
xor esi, esi
mov dword [eax], edi
lea eax, [ebp + 0xc]
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 0x1000232e
cmp dword [ebp + 0xc], ebx
jbe 0x10002337
add esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1000233b
jmp 0x10002308
xor esi, esi
mov dword [ebp - 4], 0xfffffff8
cmp esi, edi
jne 0x10002347
mov dword [ebp - 4], ebx
jmp 0x10002347
mov dword [ebp - 4], 0xfffffffa
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jbe 0x10002397
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
shl ecx, 5
shr edx, 7
imul ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
add ecx, eax
push eax
mov eax, dword [ebp + 0x18]
add eax, 8
mov dword [ebp - 0x1c], ecx
push eax
lea eax, [ebp - 0x28]
push 0x10
push eax
call fcn.1000264d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push esi
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