Function at 0x1001cebd
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1d0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1e0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1e4]
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1e8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x1cc]
mov dword [ebp - 0x74], eax
xor eax, eax
push 0x206
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4a]
push ebx
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.10035820
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp eax, ebx
je 0x1001d121
cmp dword [ebp - 0x74], ebx
je 0x1001d121
cmp dword [ebp + 0x1d4], 2
mov dword [eax], ebx
jne 0x1001cf63
mov dword [ebp - 0x64], 0x800000
push ebx
push ebx
push ebx
push ebx
push 0x10055798
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x68], eax
cmp eax, ebx
je 0x1001cfe4
push ebx
push dword [ebp + 0x1d8]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1dc]
cmp eax, 0xffffffff
je 0x1001cfa3
push eax
push eax
push eax
push eax
push dword [ebp - 0x68]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [ebp - 0x60], ebx
je 0x1001cfe4
push dword [ebp - 0x64]
push ebx
push ebx
push ebx
push dword [ebp - 0x7c]
push edi
push dword [ebp - 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x5c], esi
cmp esi, ebx
je 0x1001cfe4
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x1001cfe4
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 5
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], 0x208
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1001d01c
mov esi, dword [ebp - 0x80]
cmp esi, ebx
je 0x1001d01c
push 0xa
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.100357ef
add esp, 0xc
mov dword [esi], eax
cmp dword [ebp - 0x54], ebx
je 0x1001d0d2
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001d0d2
cmp dword [ebp - 0x58], ebx
jbe 0x1001d0d2
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
add eax, edi
mov dword [ebp - 0x64], ebx
cmp dword [ebp - 0x78], eax
ja 0x1001d07e
add eax, eax
push eax
mov dword [ebp - 0x78], eax
call fcn.10033575
pop ecx
mov esi, eax
cmp dword [ebp - 0x50], ebx
je 0x1001d07b
push edi
push dword [ebp - 0x50]
push esi
call fcn.100361b0
push dword [ebp - 0x50]
call fcn.1003363f
add esp, 0x10
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
add eax, edi
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1001d0cd
add edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x74]
mov dword [eax], edi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001d0cd
mov eax, dword [ebp + 0x1ec]
cmp eax, ebx
je 0x1001d0c2
cmp dword [eax], ebx
jne 0x1001d0cd
cmp dword [ebp - 0x58], ebx
ja 0x1001d043
jmp 0x1001d0d4
mov dword [ebp - 0x54], ebx
jmp 0x1001d0d4
mov edi, ebx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x5c], ebx
je 0x1001d0e4
push dword [ebp - 0x5c]
call esi
cmp dword [ebp - 0x60], ebx
je 0x1001d0ee
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x68], ebx
je 0x1001d0f8
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x54], ebx
je 0x1001d10e
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x1001d107
mov byte [eax + edi], bl
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x1001d11c
cmp dword [ebp - 0x50], ebx
je 0x1001d11c
push dword [ebp - 0x50]
call fcn.1003363f
pop ecx
mov eax, dword [ebp - 0x54]
jmp 0x1001d123
xor eax, eax
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032bd7
add ebp, 0x1c0
leave
ret 0x28