Function at 0x4b8440
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
test edi, edi
je 0x4b86c8
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x17], 0
test eax, eax
je 0x4b854c
push 0x6119ac
push eax
call fcn.00582c86
mov esi, eax
add esp, 8
test esi, esi
je 0x4b8493
add esi, 0xc
jmp 0x4b84ac
push 0x6119a8
push dword [esp + 0x3c]
call fcn.00582c86
add esp, 8
test eax, eax
jne 0x4b851b
mov esi, dword [esp + 0x38]
push 0x6119e0
push esi
call fcn.00582c86
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x4b84d9
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x4b84d0
movzx eax, word [esi]
test ax, ax
je 0x4b851b
cmp eax, 0x3a
je 0x4b851b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b84f0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4b851b
push esi
push 0x100
push edi
call fcn.005943f2
add esp, 0xc
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4b852c
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b8537
push eax
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4b8542
push ecx
call esi
mov al, byte [esp + 0x17]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [esp + 0x18], 0
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x3c], edi
push edi
push 0xfde9
movaps xmmword [esp + 0x58], xmm0
movq qword [esp + 0x68], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b8661
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057b68c
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
push dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push edi
push 1
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x4b8661
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4b85f2
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], ecx
jmp 0x4b8609
cmp dword [esp + 0x30], 0
je 0x4b8623
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 3
lea eax, [esp + 0x24]
mov dword [esp + 0x54], 1
push eax
lea eax, [esp + 0x44]
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4b8661
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8630
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4b8661
push dword [esp + 0x28]
push 0x100
push dword [esp + 0x28]
call fcn.005943f2
add esp, 0xc
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x4b8672
push ecx
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b867d
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4b8688
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b8699
push eax
call fcn.0057b687
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4b86a4
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b86af
push eax
call esi
test edi, edi
je 0x4b8542
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [esp + 0x17]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret