Function at 0x4a3a30
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 0x4a3cb8
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 0x4a3b3c
push str.https
push eax
call fcn.005107da
mov esi, eax
add esp, 8
test esi, esi
je 0x4a3a83
add esi, 0xc
jmp 0x4a3a9c
push 0x5be748
push dword [esp + 0x3c]
call fcn.005107da
add esp, 8
test eax, eax
jne 0x4a3b0b
mov esi, dword [esp + 0x38]
push 0x5be740
push esi
call fcn.005107da
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x4a3ac9
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x4a3ac0
movzx eax, word [esi]
test ax, ax
je 0x4a3b0b
cmp eax, 0x3a
je 0x4a3b0b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3ae0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4a3b0b
push esi
push 0x100
push edi
call fcn.00528fca
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 0x4a3b1c
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a3b27
push eax
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a3b32
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 0x4a3c51
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050ad9b
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 0x4a3c51
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4a3be2
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], ecx
jmp 0x4a3bf9
cmp dword [esp + 0x30], 0
je 0x4a3c13
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 0x4a3c51
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3c20
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4a3c51
push dword [esp + 0x28]
push 0x100
push dword [esp + 0x28]
call fcn.00528fca
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 0x4a3c62
push ecx
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a3c6d
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a3c78
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3c89
push eax
call fcn.0050ad96
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a3c94
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a3c9f
push eax
call esi
test edi, edi
je 0x4a3b32
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