Function at 0x40dc90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc8b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc8
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc80], 0
mov dword [ebp - 0xcb4], 0
mov dword [ebp - 0xca8], 0
mov dword [ebp - 0xcac], 0
mov dword [ebp - 0xcb0], 0
push 0x208
push 0
lea eax, [ebp - 0xc40]
push eax
call fcn.0048e340
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0xa38]
push ecx
call fcn.0048e340
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.0048e340
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.0048e340
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0048e340
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0048e340
add esp, 0xc
lea ecx, [ebp - 0xc58]
call fcn.00406c80
mov dword [ebp - 4], 0
mov dword [ebp - 0xcc4], 0
mov dword [ebp - 0xcc0], 0
push 0
push 0x1a
lea eax, [ebp - 0xc40]
push eax
push 0
call fcn.0040e440
add esp, 0x10
lea ecx, [ebp - 0xc40]
mov dword [ebp - 0xca0], ecx
lea edx, [ebp - 0x218]
mov dword [ebp - 0xc6c], edx
mov eax, dword [ebp - 0xc6c]
mov dword [ebp - 0xcc8], eax
mov ecx, dword [ebp - 0xca0]
mov dx, word [ecx]
mov word [ebp - 0xc66], dx
mov eax, dword [ebp - 0xc6c]
mov cx, word [ebp - 0xc66]
mov word [eax], cx
mov edx, dword [ebp - 0xca0]
add edx, 2
mov dword [ebp - 0xca0], edx
mov eax, dword [ebp - 0xc6c]
add eax, 2
mov dword [ebp - 0xc6c], eax
cmp word [ebp - 0xc66], 0
jne 0x40ddd1
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xc64], ecx
mov edx, dword [ebp - 0xc64]
add edx, 2
mov dword [ebp - 0xcb8], edx
mov eax, dword [ebp - 0xc64]
mov cx, word [eax]
mov word [ebp - 0xc8a], cx
add dword [ebp - 0xc64], 2
cmp word [ebp - 0xc8a], 0
jne 0x40de34
mov edx, dword [ebp - 0xc64]
sub edx, dword [ebp - 0xcb8]
sar edx, 1
mov dword [ebp - 0xcbc], edx
mov eax, dword [ebp - 0xcbc]
mov dword [ebp - 0xcc0], eax
mov dword [ebp - 0xc9c], 0
push 0x5c
lea ecx, [ebp - 0x218]
push ecx
call fcn.00406c40
add esp, 8
mov dword [ebp - 0xc9c], eax
cmp dword [ebp - 0xc9c], 0
jne 0x40deea
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc58]
push eax
call fcn.0040e5b0
add esp, 8
lea ecx, [ebp - 0xc58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov edx, dword [ebp - 0xc80]
or edx, 1
mov dword [ebp - 0xc80], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc58]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40e272
xor eax, eax
mov ecx, dword [ebp - 0xc9c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
mov dword [ebp - 0xc98], edx
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc70], eax
mov ecx, dword [ebp - 0xc70]
mov dword [ebp - 0xccc], ecx
mov edx, dword [ebp - 0xc98]
mov ax, word [edx]
mov word [ebp - 0xc5a], ax
mov ecx, dword [ebp - 0xc70]
mov dx, word [ebp - 0xc5a]
mov word [ecx], dx
mov eax, dword [ebp - 0xc98]
add eax, 2
mov dword [ebp - 0xc98], eax
mov ecx, dword [ebp - 0xc70]
add ecx, 2
mov dword [ebp - 0xc70], ecx
cmp word [ebp - 0xc5a], 0
jne 0x40df19
lea edx, [ebp - 0xa38]
add edx, 0xfffffffe
mov dword [ebp - 0xc74], edx
mov eax, dword [ebp - 0xc74]
mov cx, word [eax + 2]
mov word [ebp - 0xc8c], cx
add dword [ebp - 0xc74], 2
cmp word [ebp - 0xc8c], 0
jne 0x40df70
mov edi, dword [ebp - 0xc74]
mov edx, dword [0x4d0a34]
mov dword [edi], edx
mov eax, dword [str.ocal]
mov dword [edi + 4], eax
mov ecx, dword [0x4d0a3c]
mov dword [edi + 8], ecx
mov dx, word [0x4d0a40]
mov word [edi + 0xc], dx
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dfd7
mov dword [ebp - 0xca8], 1
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xca4], ecx
lea edx, [ebp - 0x628]
mov dword [ebp - 0xc78], edx
mov eax, dword [ebp - 0xc78]
mov dword [ebp - 0xcd0], eax
mov ecx, dword [ebp - 0xca4]
mov dx, word [ecx]
mov word [ebp - 0xc5c], dx
mov eax, dword [ebp - 0xc78]
mov cx, word [ebp - 0xc5c]
mov word [eax], cx
mov edx, dword [ebp - 0xca4]
add edx, 2
mov dword [ebp - 0xca4], edx
mov eax, dword [ebp - 0xc78]
add eax, 2
mov dword [ebp - 0xc78], eax
cmp word [ebp - 0xc5c], 0
jne 0x40dffb
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov dword [ebp - 0xc7c], ecx
mov edx, dword [ebp - 0xc7c]
mov ax, word [edx + 2]
mov word [ebp - 0xc8e], ax
add dword [ebp - 0xc7c], 2
cmp word [ebp - 0xc8e], 0
jne 0x40e052
mov edi, dword [ebp - 0xc7c]
mov ecx, dword [str.LocalLow]
mov dword [edi], ecx
mov edx, dword [0x4d0a48]
mov dword [edi + 4], edx
mov eax, dword [0x4d0a4c]
mov dword [edi + 8], eax
mov ecx, dword [0x4d0a50]
mov dword [edi + 0xc], ecx
mov edx, dword [0x4d0a54]
mov dword [edi + 0x10], edx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e0c0
mov dword [ebp - 0xcac], 1
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xc94], ecx
lea edx, [ebp - 0x830]
mov dword [ebp - 0xc88], edx
mov eax, dword [ebp - 0xc88]
mov dword [ebp - 0xcd4], eax
mov ecx, dword [ebp - 0xc94]
mov dx, word [ecx]
mov word [ebp - 0xc5e], dx
mov eax, dword [ebp - 0xc88]
mov cx, word [ebp - 0xc5e]
mov word [eax], cx
mov edx, dword [ebp - 0xc94]
add edx, 2
mov dword [ebp - 0xc94], edx
mov eax, dword [ebp - 0xc88]
add eax, 2
mov dword [ebp - 0xc88], eax
cmp word [ebp - 0xc5e], 0
jne 0x40e0e4
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov dword [ebp - 0xc84], ecx
mov edx, dword [ebp - 0xc84]
mov ax, word [edx + 2]
mov word [ebp - 0xc90], ax
add dword [ebp - 0xc84], 2
cmp word [ebp - 0xc90], 0
jne 0x40e13b
mov edi, dword [ebp - 0xc84]
mov ecx, dword [str.Roaming]
mov dword [edi], ecx
mov edx, dword [0x4d0a5c]
mov dword [edi + 4], edx
mov eax, dword [0x4d0a60]
mov dword [edi + 8], eax
mov ecx, dword [0x4d0a64]
mov dword [edi + 0xc], ecx
mov dx, word [0x4d0a68]
mov word [edi + 0x10], dx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e1ab
mov dword [ebp - 0xcb0], 1
cmp dword [ebp - 0xca8], 0
je 0x40e1d0
cmp dword [ebp - 0xcac], 0
je 0x40e1d0
cmp dword [ebp - 0xcb0], 0
je 0x40e1d0
mov dword [ebp - 0xcb4], 1
cmp dword [ebp - 0xcb4], 0
je 0x40e22c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x628]
push edx
push str._s_s_
lea eax, [ebp - 0x420]
push eax
call fcn.00401b30
add esp, 0x10
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e218
lea edx, [ebp - 0x420]
push edx
call fcn.0040db40
add esp, 4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00406c60
jmp 0x40e23f
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc58]
push edx
call fcn.0040e5b0
add esp, 8
lea eax, [ebp - 0xc58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov ecx, dword [ebp - 0xc80]
or ecx, 1
mov dword [ebp - 0xc80], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc58]
call fcn.004022e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret