Function at 0x1001cd3e
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.10035680
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp eax, ebx
je 0x1001cfa2
cmp dword [ebp - 0x74], ebx
je 0x1001cfa2
cmp dword [ebp + 0x1d4], 2
mov dword [eax], ebx
jne 0x1001cde4
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 0x1001ce65
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 0x1001ce24
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 0x1001ce65
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 0x1001ce65
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 0x1001ce65
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 0x1001ce9d
mov esi, dword [ebp - 0x80]
cmp esi, ebx
je 0x1001ce9d
push 0xa
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.1003564f
add esp, 0xc
mov dword [esi], eax
cmp dword [ebp - 0x54], ebx
je 0x1001cf53
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001cf53
cmp dword [ebp - 0x58], ebx
jbe 0x1001cf53
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
add eax, edi
mov dword [ebp - 0x64], ebx
cmp dword [ebp - 0x78], eax
ja 0x1001ceff
add eax, eax
push eax
mov dword [ebp - 0x78], eax
call fcn.10033407
pop ecx
mov esi, eax
cmp dword [ebp - 0x50], ebx
je 0x1001cefc
push edi
push dword [ebp - 0x50]
push esi
call fcn.10036010
push dword [ebp - 0x50]
call fcn.100334d1
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 0x1001cf4e
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 0x1001cf4e
mov eax, dword [ebp + 0x1ec]
cmp eax, ebx
je 0x1001cf43
cmp dword [eax], ebx
jne 0x1001cf4e
cmp dword [ebp - 0x58], ebx
ja 0x1001cec4
jmp 0x1001cf55
mov dword [ebp - 0x54], ebx
jmp 0x1001cf55
mov edi, ebx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x5c], ebx
je 0x1001cf65
push dword [ebp - 0x5c]
call esi
cmp dword [ebp - 0x60], ebx
je 0x1001cf6f
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x68], ebx
je 0x1001cf79
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x54], ebx
je 0x1001cf8f
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x1001cf88
mov byte [eax + edi], bl
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x1001cf9d
cmp dword [ebp - 0x50], ebx
je 0x1001cf9d
push dword [ebp - 0x50]
call fcn.100334d1
pop ecx
mov eax, dword [ebp - 0x54]
jmp 0x1001cfa4
xor eax, eax
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032a69
add ebp, 0x1c0
leave
ret 0x28