Function at 0x101477f0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x17], 1
mov byte [ebp - 0x15], 0
nop dword [eax]
cmp byte [esi + 0x20], 0
je 0x10147bd0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x10147845
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x800100
mov ecx, 0x100
lea edx, [eax + 0x170]
cmp dword [eax + 0x18c], 1
cmovne edi, ecx
cmp dword [edx + 0x14], 8
jb 0x1014786a
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea ecx, [esi + 0x7c]
jb 0x10147878
mov ecx, dword [ecx]
cmp dword [esi + 0xa8], 8
lea eax, [esi + 0x94]
jb 0x10147889
mov eax, dword [eax]
push edi
push 0
push edx
push 0
push ecx
push eax
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
je 0x10147bb1
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x10147903
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x10147903
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x10147903
cmp dword [eax + 0x34], 8
lea edx, [eax + 0x20]
jb 0x101478d7
mov edx, dword [edx]
cmp dword [eax + 0x1c], 8
lea ecx, [eax + 8]
jb 0x101478e2
mov ecx, dword [ecx]
mov eax, dword [eax + 0x1b4]
push 0
push edx
push ecx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x10147ae5
mov eax, dword [esi + 0x24]
mov al, byte [eax + 0x193]
cmp byte [esi + 0x20], 0
je 0x10147b6a
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x10147923
xor ebx, ebx
jmp 0x1014792d
cmp dword [eax + 0x14], 8
mov ebx, eax
jb 0x1014792d
mov ebx, dword [eax]
call fcn.10137740
push eax
call fcn.100feb60
add esp, 4
mov byte [ebp - 0x16], al
nop
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
jne 0x10147989
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1014797f
call fcn.10137740
push str.redirection_detected._Sending_the_request_again
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x10147940
push eax
mov ecx, esi
call fcn.10147260
xor edi, edi
cmp byte [ebp - 0x16], 0
je 0x1014799d
call fcn.10137740
push eax
call fcn.100ff1b0
add esp, 4
mov eax, dword [esi + 0xb0]
lea ebx, [esi + 0xb0]
cmp edi, 1
jne 0x10147b9e
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10147b44
cmp byte [ebp + 0xc], 0
je 0x101479d2
push ebx
call fcn.10146f80
add esp, 4
mov ecx, esi
call fcn.10146420
test al, al
je 0x10147b2e
cmp dword [esi + 0x38], 0xb
jne 0x10147bfe
mov eax, dword [esi + 0x24]
mov byte [eax + 0x192], 1
call fcn.10137740
push str.Response_from_proxy_server_is_:
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
push ebx
call fcn.10146f80
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x10147a3c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.10147260
jmp 0x10147a94
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x10147a52
mov dword [ecx + 0x1b4], 0x10
jmp 0x10147a8e
test al, 2
je 0x10147a62
mov dword [ecx + 0x1b4], 2
jmp 0x10147a8e
test al, 4
je 0x10147a72
mov dword [ecx + 0x1b4], 4
jmp 0x10147a8e
test al, 8
je 0x10147a82
mov dword [ecx + 0x1b4], 8
jmp 0x10147a8e
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x15], 0
jne 0x10147bfe
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x10147ac9
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10147b0c
call fcn.10137740
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
mov byte [ebp - 0x15], 1
jmp 0x10147820
call ebx
push eax
mov ecx, esi
call fcn.10147260
call fcn.10137740
push str.Failed_to_set_the_proxy_credentials
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x10147bfe
call fcn.10137740
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x101a4aec
push esi
call dword [edi + 0x24]
add esp, 0x10
jmp 0x10147bfe
mov al, byte [ebp - 0x17]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
call fcn.10137740
push str.initHttpDownload:_failed_to_receive_the_response_from_server
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10147260
jmp 0x10147bfe
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101a4aec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001c20
push 0
push 0x13
mov ecx, esi
call fcn.10147c20
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x10147bfe
call fcn.10137740
push str.createRequest_:_failed_to_open_the_request_handle
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call ebx
push eax
mov ecx, esi
call fcn.10147260
jmp 0x10147bfe
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101a4aec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001c20
push 0
push 0x13
mov ecx, esi
call fcn.10147c20
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8