Function at 0x485230
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611610
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
jne 0x485288
push str.Input_preference_is_null
lea ecx, [esi + 8]
mov dword [esi], 0xfffffff6
mov byte [esi + 0x20], 1
call fcn.0040bac0
xor al, al
jmp 0x4854e7
push 0
push 0
lea ecx, [ebp - 0xf8]
mov dword [edi + 4], ebx
call fcn.00480e80
cmp dword [ebx + 0x144], 8
lea eax, [ebx + 0x130]
mov dword [ebp - 4], 0
jb 0x4852b2
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
test eax, eax
jne 0x48530d
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push str.Failed_to_open_http_session
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x20], 1
call fcn.0040bac0
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_open_the_winhttp_session____d
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x4854da
mov ecx, dword [edi + 4]
movzx eax, byte [ecx + 0x16c]
push eax
lea eax, [ecx + 0xe8]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00482d80
test al, al
jne 0x4853bc
lea eax, [ebp - 0x38]
mov dword [esi], 0xffffffd8
push eax
lea ecx, [ebp - 0xf8]
call fcn.004822e0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp ecx, 8
jb 0x48538f
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x485385
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485505
push ecx
push edx
call fcn.005d0cf8
add esp, 8
lea ebx, [esi + 8]
mov byte [esi + 0x20], 1
push str.Failed_to_resolve_machine_proxy_settings
mov ecx, ebx
call fcn.0040bac0
call fcn.00472b10
push str.failed_to_resolve_the_proxy_setting_on_the_machine
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x4853bf
lea ebx, [esi + 8]
push 0xc
lea eax, [ebp - 0x108]
push eax
push 0x26
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x485414
mov dword [esi], 0xffffffd8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.Failed_to_set_proxy_setting_in_http_session
mov ecx, ebx
mov dword [esi + 4], eax
mov byte [esi + 0x20], 1
call fcn.0040bac0
call fcn.00472b10
push str.failed_to_set_the_proxy_option_in_the_winhttp_session
push 0x65fe6c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor bl, bl
jmp 0x4854da
push 0x4e20
push 0xafc8
push 0xafc8
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x485474
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push str.Failed_to_set_timeout_http_session
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x20], 1
call fcn.0040bac0
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_set_the_timeout_for_http_session._Err____d
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x4854da
push 4
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0x800
push eax
push 0x54
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4854d8
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push str.Failed_to_set_redirection_policy
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x20], 1
call fcn.0040bac0
call fcn.00472b10
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_set_the_redirection_policy_for_http_session._Err____d
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x4854da
mov bl, 1
lea ecx, [ebp - 0xf8]
call fcn.00480f80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret 8
call fcn.005d87bd
int3