Function at 0x40be90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c901
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x426168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
push ecx
mov dword [ebp - 0x630], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x62c], edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x40bf78
push 1
push 0x410
push 0x41ede8
lea ecx, [ebp - 0x64c]
call fcn.0040a480
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 1
call fcn.00408f00
mov edi, eax
test edi, edi
je 0x40bf41
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 0x62c], eax
jne 0x40bf41
push 0x8007000e
call fcn.00401000
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 0
call fcn.00409f90
xor edi, edi
push 0x420df0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x420df0
lea ecx, [ebp - 0x62c]
call fcn.0040b820
cmp eax, edi
jge 0x40bfcd
push eax
call fcn.00401000
push 0x616
lea edx, [ebp - 0x626]
push edi
push edx
mov word [ebp - 0x628], di
call fcn.0040e580
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.0040a070
add esp, 0x14
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [ebp - 0x62c], eax
jne 0x40bf52
push 0x8007000e
call fcn.00401000
mov eax, dword [ebp + 8]
add eax, 0xffffffff
cmp eax, 6
ja case.0x40bfd8.2
jmp dword [eax*4 + 0x40c144]
push str.Config
lea ecx, [ebp - 0x62c]
call fcn.0040b980
jmp 0x40c044
push str.Settings
lea ecx, [ebp - 0x62c]
call fcn.0040b980
cmp ebx, edi
je 0x40c044
cmp word [ebx], di
je 0x40c044
push ebx
lea ecx, [ebp - 0x62c]
call fcn.0040b980
jmp 0x40c044
push str.DLPSettings
jmp 0x40bff6
push str.System
lea ecx, [ebp - 0x62c]
call fcn.0040b980
jmp 0x40c044
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x62c], edi
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40c0fc
push str..dat
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str..dat
lea ecx, [ebp - 0x62c]
call fcn.0040b820
cmp eax, edi
jge 0x40c07f
push eax
call fcn.00401000
mov eax, dword [ebp - 0x630]
cmp eax, edi
je 0x40c096
push eax
mov ecx, esi
call fcn.0040aed0
mov byte [esi + 0x10], al
jmp 0x40c0fc
call dword [0x426068]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c0fc
mov ebx, dword [ebp - 0x62c]
push ebx
lea ecx, [ebp - 0x640]
call fcn.00409d20
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call fcn.00408cd0
test al, al
je 0x40c0ed
push ebx
mov ecx, esi
call fcn.0040af10
cmp eax, edi
setge dl
lea ecx, [ebp - 0x640]
mov byte [esi + 0x10], dl
call fcn.00408d20
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 0
call fcn.00409f10
cmp byte [esi + 0x10], 0
je 0x40c111
lea eax, [ebp - 0x62c]
push eax
lea ecx, [esi + 0x14]
call fcn.00408610
mov ecx, dword [ebp - 0x62c]
mov bl, byte [esi + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d2aa
mov esp, ebp
pop ebp
ret 0x10