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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push edx
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000b5b0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.1005db60
push ebx
push ebx
push ebx
push ebx
mov ecx, eax
call fcn.1000a850
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x28], esi
call fcn.1000abe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.1000b430
test esi, esi
je 0x1005ebc3
push dword [ebp + 0x20]
lea ecx, [ebp - 0x58]
call fcn.1000b5b0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.1005db60
mov edi, dword [ebp + 0x2c]
mov ecx, eax
push ebx
push edi
call fcn.1000a850
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x1c], esi
call fcn.1000abe0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.1000b430
test esi, esi
je 0x1005ebc3
push dword [ebp + 0x24]
lea ecx, [ebp - 0x88]
call fcn.1000b5b0
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.1005db60
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1000a850
push dword [ebp + 0x28]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000b5b0
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd0]
call fcn.1005db60
mov ecx, eax
call fcn.1000a850
xor ecx, ecx
mov edx, 0x800000
cmp edi, 0x1bb
cmove ecx, edx
push ecx
push ebx
push ebx
push ebx
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x20], esi
call fcn.1000abe0
lea ecx, [ebp - 0x70]
call fcn.1000b430
lea ecx, [ebp - 0xe8]
call fcn.1000abe0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call fcn.1000b430
test esi, esi
je 0x1005ebaf
mov eax, dword [ebp + 0x34]
lea ecx, [ebp + 8]
push ebx
push eax
push eax
push dword [ebp + 0x30]
push 0xffffffffffffffff
call fcn.1000a850
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1005eba1
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1005ebc3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1005eb93
push dword [ebp - 0x10]
call fcn.10061c92
mov edi, eax
add esp, 4
test edi, edi
je 0x1005eb72
push dword [ebp - 0x10]
push 0
push edi
call fcn.10063ea0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1005eafb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
call fcn.100014e0
add esp, 8
jmp 0x1005eb5d
push ebx
call fcn.10061c92
push ebx
push dword [ebp - 0x14]
mov esi, eax
push esi
call fcn.100633a0
push dword [ebp - 0x14]
call fcn.10061814
mov eax, dword [ebp - 0x18]
inc eax
add eax, ebx
push eax
call fcn.10061c92
mov ecx, eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x14], ecx
add eax, ebx
push eax
push 0
push ecx
call fcn.10063ea0
push ebx
push esi
push dword [ebp - 0x14]
call fcn.100633a0
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, ebx
push edi
push eax
call fcn.100633a0
push esi
call fcn.10061814
mov esi, dword [ebp - 0x20]
add esp, 0x40
add ebx, dword [ebp - 0x18]
push edi
call fcn.10061814
add esp, 4
cmp dword [ebp - 0x10], 0
ja 0x1005ea95
jmp 0x1005eb79
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [eax], ebx
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x28]
call esi
jmp 0x1005ebca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
jmp 0x1005ebbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpSendRequest._n
jmp 0x1005ebbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpOpenRequest._n
call fcn.100014e0
add esp, 8
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.1000abe0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret