Function at 0x1000714c
Capabilities:
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.10018631
pop ecx
test eax, eax
je 0x10007337
lea edi, [esi + 0x31a]
push edi
call fcn.10018631
pop ecx
test eax, eax
je 0x10007337
lea ebx, [esi + 0x37e]
push ebx
call fcn.10018631
pop ecx
test eax, eax
je 0x10007337
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push eax
call fcn.10017e80
add esp, 0xc
xor eax, eax
mov word [ebp - 0x62c], ax
push 0x206
push eax
lea eax, [ebp - 0x62a]
push eax
call fcn.10017e80
add esp, 0xc
mov byte [ebp - 0x114], 0
lea eax, [ebp - 0x113]
push 0x103
push 0
push eax
call fcn.10017e80
add esp, 0xc
mov byte [ebp - 0x21c], 0
lea eax, [ebp - 0x21b]
push 0x103
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x834]
push ebx
push edi
push str._s:_s
mov ebx, 0x104
push ebx
push eax
call fcn.10018916
add esp, 0x14
lea eax, [ebp - 0x114]
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x834]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x400
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10018710
pop ecx
mov edx, eax
lea ecx, [ebp - 0x114]
call fcn.10001bf7
add esp, 0xc
test eax, eax
je 0x1000745c
cmp dword [ebp - 8], 0
jle 0x1000745c
xor eax, eax
lea edi, [ebp - 0x62c]
mov ebx, 0x82
push 0x104
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x62c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
lea edi, [ebp - 0x424]
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x62c]
push eax
push str.Proxy_Authorization:_Basic__s
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.10018916
add esp, 0x10
lea eax, [ebp - 0x424]
mov ebx, 0xa0000000
push ebx
push eax
call fcn.10018631
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
pop ecx
push eax
lea eax, [ebp - 0x424]
push eax
push dword [esi + 0x274]
call edi
test eax, eax
je 0x1000745c
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x424]
push eax
push dword [esi + 0x278]
call edi
test eax, eax
je 0x1000745c
cmp dword [ebp + 0x10], 1
jne 0x10007376
push dword [ebp + 0xc]
mov eax, dword [esi + 0x278]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x27c], eax
call fcn.10006b00
test eax, eax
jne 0x100073ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.0x02__PSD_failed:_0x_x.
call fcn.10001dcc
pop ecx
pop ecx
mov eax, esi
jmp 0x1000745e
cmp dword [ebp + 0x10], 0
jne 0x1000745c
push dword [ebp + 0xc]
mov eax, dword [esi + 0x274]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x27c], eax
call fcn.1000660e
test eax, eax
jne 0x100073ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.0x02__GSD_failed:_0x_x.
jmp 0x10007368
push 0
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x100073cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.0x02__RR_failed:_0x_x.
jmp 0x10007368
mov ecx, esi
call fcn.10007467
mov edi, eax
push edi
push str.0x02__Status:__d.
call fcn.10001dcc
pop ecx
pop ecx
mov ecx, esi
call fcn.100074d2
cmp edi, 0x191
je 0x100073fc
cmp edi, 0x197
jne 0x1000744f
push edi
push str.0x02__Response_Status:__d.
call fcn.10001dcc
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
and dword [ebp + 0x10], 0
and dword [ebp + 8], 0
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
push 0
lea eax, [esi + 0x37e]
push eax
lea eax, [esi + 0x31a]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
xor eax, eax
cmp edi, 0xc8
sete al
jmp 0x1000745e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc