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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088e4e
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
xor ebx, ebx
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000b5b0
lea edx, [ebp - 0x40]
mov dword [ebp - 4], ebx
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 dword [ebp - 4], 0xffffffff
call fcn.1000b430
test esi, esi
je 0x1005e8ae
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.1000b5b0
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.1005db60
mov edi, dword [ebp + 0x14]
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 dword [ebp - 4], 0xffffffff
call fcn.1000b430
test esi, esi
je 0x1005e8ae
push dword [ebp + 0xc]
lea ecx, [ebp - 0x88]
call fcn.1000b5b0
lea edx, [ebp - 0x88]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.1005db60
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1000a850
push dword [ebp + 0x10]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000b5b0
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.1005db60
mov ecx, eax
call fcn.1000a850
mov ecx, eax
mov edx, 0x800000
xor eax, eax
cmp edi, 0x1bb
cmove eax, edx
push eax
push ebx
push ebx
push ebx
push esi
push ecx
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 dword [ebp - 4], 0xffffffff
call fcn.1000b430
test esi, esi
je 0x1005e89a
mov eax, dword [ebp + 0x1c]
push ebx
push eax
push eax
push dword [ebp + 0x18]
push 0xffffffffffffffff
push str.content_type:application_x_www_form_urlencoded
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1005e88c
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1005e8ae
nop word [eax + eax]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1005e87e
push dword [ebp - 0x10]
call fcn.10061c92
mov edi, eax
add esp, 4
test edi, edi
je 0x1005e84b
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 0x1005e7d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
call fcn.100014e0
add esp, 8
jmp 0x1005e836
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, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x14], eax
add ecx, ebx
push ecx
push 0
push eax
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 0x1005e770
jmp 0x1005e852
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
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
jmp 0x1005e8a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpSendRequest._n
jmp 0x1005e8a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpOpenRequest._n
call fcn.100014e0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret