Function at 0x10016210
Capabilities:
Check for peb beingdebugged flag
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x1003a4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov edi, edx
mov dword [esp + 0x18], eax
mov esi, ecx
mov dword [esp + 0x2c], edi
call fcn.10016af0
xor ebx, ebx
push 0x38
lea ecx, [esp + 0x38]
push ebx
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call fcn.1002fb20
add esp, 0xc
or ebp, 0xffffffff
mov eax, esi
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100162a1
sub eax, edx
lea edx, [esp + 0x30]
push edx
push ebx
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10016540
push ebx
push ebx
push ebx
push ebx
push str.User_Agent
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x10016540
push ebx
push ebx
push 0x4e20
push 0x4e20
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov edx, dword [esp + 0x40]
mov eax, edx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10016320
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x90]
call fcn.100031f0
mov eax, esi
mov dword [esp + 0xb0], ebx
mov ecx, dword [esp + 0x44]
push eax
lea esi, [esp + 0x70]
call fcn.10016b90
push ebp
push ebx
lea ecx, [esp + 0x90]
mov byte [esp + 0xb8], 1
call fcn.10003860
mov ebp, 8
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x84], ebp
jb 0x1001638c
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0xa0], ebp
mov eax, dword [esp + 0x8c]
jae 0x100163a3
lea eax, [esp + 0x8c]
mov edx, dword [esp + 0x48]
push ebx
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x10016520
xor eax, eax
cmp word [esp + 0x48], 0x1bb
setne al
sub eax, 1
and eax, 0x800000
push eax
mov eax, dword [esp + 0x60]
push ebx
push ebx
push ebx
push eax
push 0x1003ed18
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
cmp edi, ebx
je 0x10016515
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10016416
mov esi, dword [esp + 0x18]
push str.WinHttpControl::GetWebData:_can_not_send_request._r_n
call fcn.10028b30
jmp 0x10016502
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10016435
mov esi, dword [esp + 0x18]
push str.WinHttpControl::GetWebData:_can_not_receive_response._r_n
call fcn.10028b30
jmp 0x10016502
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
jmp 0x10016440
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], ebx
call esi
test eax, eax
je 0x100164db
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001654d
mov ecx, dword [esp + 0x20]
add ecx, eax
cmp ecx, dword [esp + 0xbc]
mov dword [esp + 0x20], ecx
jae 0x10016505
add eax, 0x10
push eax
push 1
call fcn.1002c883
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x10016505
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ebp
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100164eb
cmp dword [esp + 0x24], ebx
je 0x10016544
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100164b0
sub eax, edx
push eax
mov eax, dword [esp + 0x30]
push ebp
call fcn.10015ee0
push ebp
call fcn.1002c6d7
add esp, 4
cmp dword [esp + 0x14], ebx
ja 0x10016440
jmp 0x1001654d
mov esi, dword [esp + 0x18]
push str.WinHttpControl::GetWebData:_can_not_query_data_available._r_n
call fcn.10028b30
jmp 0x10016502
mov esi, dword [esp + 0x18]
push str.WinHttpControl::GetWebData:_can_not_read_data._r_n
call fcn.10028b30
add esp, 4
push ebp
call fcn.1002c6d7
add esp, 4
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x1c]
mov ebp, 8
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0xa0], ebp
jb 0x10016540
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x10016572
push ebp
call fcn.1002c6d7
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
lea esi, [esp + 0x88]
call fcn.10003e00
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.1002b6af
add esp, 0xa0
ret 8