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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0xf], 1
mov byte [esp + 0xd], 0
cmp byte [esi + 0x20], 0
mov ebx, 0x100
je 0x100ed637
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x100ed1b4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x800100
lea edx, [eax + 0x170]
cmp dword [eax + 0x18c], 1
cmovne edi, ebx
cmp dword [edx + 0x14], 8
jb 0x100ed1d4
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x100ed1e2
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x100ed1f3
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
je 0x100ed5f1
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x100ed26d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x100ed26d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x100ed26d
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
jb 0x100ed241
mov ecx, dword [ecx]
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x100ed24c
mov edx, dword [edx]
mov eax, dword [eax + 0x1b4]
push 0
push ecx
push edx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x100ed4d8
mov eax, dword [esi + 0x24]
mov al, byte [eax + 0x193]
cmp byte [esi + 0x20], 0
je 0x100ed5aa
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x100ed28e
xor ebx, ebx
jmp 0x100ed298
cmp dword [eax + 0x14], 8
mov ebx, eax
jb 0x100ed298
mov ebx, dword [eax]
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed2ab
cmp byte [0x101fc262], 0
jne 0x100ed2b6
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
call fcn.1010e210
mov byte [esp + 0xe], 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 0x100ed32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x100ed322
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed2fd
cmp byte [0x101fc262], 0
jne 0x100ed308
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.redirection_detected._Sending_the_request_again
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
jmp 0x100ed2c0
push eax
mov ecx, esi
call fcn.100ebbe0
xor edi, edi
cmp byte [esp + 0xe], 0
je 0x100ed356
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed346
cmp byte [0x101fc262], 0
jne 0x100ed351
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
call fcn.1010e840
mov eax, dword [esi + 0xb0]
cmp edi, 1
jne 0x100ed5de
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100ed585
mov ecx, esi
call fcn.100ec4b0
test al, al
je 0x100ed56d
cmp dword [esi + 0x38], 0xb
jne 0x100ed665
mov eax, dword [esi + 0x24]
mov ecx, dword [0x101fc26c]
mov byte [eax + 0x192], 1
test ecx, ecx
je 0x100ed3ac
cmp byte [0x101fc262], 0
jne 0x100ed3b7
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.Response_from_proxy_server_is_:
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.100ec740
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x100ed409
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100ebbe0
jmp 0x100ed45c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x100ed420
mov dword [ecx + 0x1b4], 0x10
jmp 0x100ed45c
test al, 2
je 0x100ed430
mov dword [ecx + 0x1b4], 2
jmp 0x100ed45c
test al, 4
je 0x100ed440
mov dword [ecx + 0x1b4], 4
jmp 0x100ed45c
test al, 8
je 0x100ed450
mov dword [ecx + 0x1b4], 8
jmp 0x100ed45c
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
cmp byte [esp + 0xd], 0
jne 0x100ed665
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x100ed498
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x100ed526
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed4ab
cmp byte [0x101fc262], 0
jne 0x100ed4b6
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
mov byte [esp + 0xd], 1
jmp 0x100ed18a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100ebbe0
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed4f9
cmp byte [0x101fc262], 0
jne 0x100ed504
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.Failed_to_set_the_proxy_credentials
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x100ed665
mov edi, dword [0x101fc26c]
test edi, edi
je 0x100ed539
cmp byte [0x101fc262], 0
jne 0x100ed544
call fcn.100e0c40
mov edi, dword [0x101fc26c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x101ace0c
push edi
call dword [0x1019a4f8]
call esi
add esp, 0x10
jmp 0x100ed665
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed598
cmp byte [0x101fc262], 0
jne 0x100ed5a3
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x100ed614
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101ace0c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001d60
push 0
push 0x13
mov ecx, esi
call fcn.100eba40
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x100ed665
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed604
cmp byte [0x101fc262], 0
jne 0x100ed60f
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
push str.createRequest_:_failed_to_open_the_request_handle
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100ebbe0
jmp 0x100ed665
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101ace0c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001d60
push 0
push 0x13
mov ecx, esi
call fcn.100eba40
mov ecx, dword [esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 8