Function at 0x49f8f0
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 0x49fb78
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 0x49f9fc
push 0x5ccf5c
push eax
call fcn.0050503a
mov esi, eax
add esp, 8
test esi, esi
je 0x49f943
add esi, 0xc
jmp 0x49f95c
push 0x5ccf58
push dword [esp + 0x3c]
call fcn.0050503a
add esp, 8
test eax, eax
jne 0x49f9cb
mov esi, dword [esp + 0x38]
push 0x5ccf90
push esi
call fcn.0050503a
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x49f989
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x49f980
movzx eax, word [esi]
test ax, ax
je 0x49f9cb
cmp eax, 0x3a
je 0x49f9cb
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f9a0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x49f9cb
push esi
push 0x100
push edi
call fcn.0051d66a
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 0x49f9dc
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x49f9e7
push eax
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x49f9f2
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 0x49fb11
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004feb5b
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 0x49fb11
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x49faa2
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], ecx
jmp 0x49fab9
cmp dword [esp + 0x30], 0
je 0x49fad3
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 0x49fb11
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fae0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x49fb11
push dword [esp + 0x28]
push 0x100
push dword [esp + 0x28]
call fcn.0051d66a
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 0x49fb22
push ecx
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x49fb2d
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49fb38
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49fb49
push eax
call fcn.004feb56
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49fb54
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49fb5f
push eax
call esi
test edi, edi
je 0x49f9f2
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