Function at 0x40dc50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ad5a
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x45fc48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0
call fcn.00406850
push str._PROXY_DETECT__IE:_Determining_if_proxy_is_configured...
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call fcn.00406ba0
push 0xc
call fcn.00418acc
mov esi, eax
add esp, 4
test esi, esi
je 0x40dce2
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x40dce4
xor esi, esi
mov dword [ebp - 0x28], esi
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [esi], xmm0
lea eax, [ebp - 0x20]
mov dword [esi + 8], 0
push eax
mov byte [ebp - 4], 2
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x40de7b
cmp dword [ebp - 0x18], 0
je 0x40dd86
lea ecx, [ebp - 0x108]
call fcn.00406850
push str._PROXY_DETECT__IE:_IE_Proxy_set_to_use_a_user_specified_proxy_server
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.00406ba0
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [esi], 3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dd7f
push eax
call ebx
mov dword [edi], esi
jmp 0x40df54
cmp dword [ebp - 0x1c], 0
je 0x40ded0
lea ecx, [ebp - 0x108]
call fcn.00406850
push str._PROXY_DETECT__IE:_proxy_config_has_auto_config_URL
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.00406ba0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x44]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x44], 2
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x10]
push eax
call fcn.00402580
sub esp, 0x18
mov ecx, esp
push 0x44e244
mov byte [ebp - 4], 5
call fcn.00401590
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d830
test eax, eax
je 0x40de55
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x40de32
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40de3c
push eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40de46
push eax
call ebx
lea ecx, [ebp + 0x10]
mov dword [edi], esi
call fcn.00401720
jmp 0x40df65
lea ecx, [ebp - 0x108]
call fcn.00406850
push str._PROXY_DETECT__IE:_Failed_to_detect_proxy_using_auto_config_URL
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
jmp 0x40deb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp eax, 2
je 0x40dec6
lea ecx, [ebp - 0x108]
call fcn.00406850
push dword [ebp - 0x10]
mov ecx, eax
push str._PROXY_DETECT__IE:_Failed_to_get_IE_proxy_settings_for_current_user:_lastError_
mov byte [ebp - 4], 7
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
mov ecx, eax
call fcn.00404530
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.00406ba0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ded0
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40deda
push eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dee4
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x40defb
push eax
call fcn.004192a4
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40df12
push eax
call fcn.004192a4
add esp, 4
mov dword [esi + 4], 0
lea ecx, [ebp - 0x108]
call fcn.00406850
push str.Done_freeing_IE_Proxy_Config
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.00406ba0
push esi
mov dword [edi], 0
call fcn.00418b1b
add esp, 4
cmp dword [ebp + 0x24], 8
jb 0x40df65
push dword [ebp + 0x10]
call fcn.00418b1b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20