Function at 0x4b98b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b9b01
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x4b9b01
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b99b3
push 0x6cd090
push eax
mov byte [ebp - 1], 0
call fcn.0060fa9b
mov esi, eax
add esp, 8
test esi, esi
je 0x4b9905
add esi, 0xc
jmp 0x4b991c
push 0x6cd0a0
push dword [ebp - 0x1c]
call fcn.0060fa9b
add esp, 8
test eax, eax
jne 0x4b9984
mov esi, dword [ebp - 0x1c]
push 0x6cd0a4
push esi
call fcn.0060fa9b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4b9935
add ecx, 6
jmp 0x4b9937
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x4b994f
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x20
je 0x4b9941
mov edx, eax
test dx, dx
je 0x4b9984
cmp dx, 0x3a
je 0x4b9984
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b9960
sub edx, esi
sar edx, 1
cmp edx, ebx
jg 0x4b9984
push ecx
push ebx
push dword [ebp + 8]
call fcn.00622884
add esp, 0xc
mov bl, 1
jmp 0x4b9987
mov bl, byte [ebp - 1]
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4b9997
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b99a1
push eax
call esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b99ab
push ecx
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
mov byte [ebp + 0xb], 0
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
xorps xmm0, xmm0
xor ebx, ebx
push edi
push 0xfde9
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0xc], ebx
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
test eax, eax
je 0x4b9aa7
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0060c9a0
add esp, 4
mov ebx, eax
push dword [ebp - 8]
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push edi
push 1
push 0x6cd0ac
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x4b9aa7
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b9a47
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x34], ecx
jmp 0x4b9a5b
cmp dword [ebp - 0x24], 0
je 0x4b9a72
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b9aa7
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9a80
mov eax, dword [ebp + 0xc]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
jg 0x4b9aa7
push dword [ebp - 0x10]
push eax
push esi
call fcn.00622884
add esp, 0xc
mov byte [ebp + 0xb], 1
mov ecx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x4b9ab7
push ecx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b9ac1
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b9acb
push eax
call esi
test ebx, ebx
je 0x4b9ad8
push ebx
call fcn.0060c9a9
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b9ae2
push ecx
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b9aec
push eax
call esi
test edi, edi
je 0x4b9af7
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret