Function at 0x40e1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x439e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
and dword [edi + 0x4c], 0
cmp byte [edi + 0x30], 0
mov edx, dword [ebp + 0x84]
mov ebx, dword [ebp + 0x88]
mov dword [ebp - 0x18], edx
jne 0x40e1f4
test bl, 4
jne 0x40e1f4
xor cl, cl
jmp 0x40e1f6
mov cl, 1
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40e20e
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x40e21d
or ebx, 2
xor ecx, ecx
mov dword [ebp + 0x14], 7
xor eax, eax
mov dword [ebp], ecx
mov dword [ebp + 0x10], ecx
mov word [ebp], ax
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x3c], ecx
mov dword [ebp - 4], ecx
cmp byte [edi + 0x24], al
je 0x40e252
or esi, 0x100
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x40e25c
mov eax, dword [edx]
push ecx
push 0x8000000
push 3
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40e336
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp + 0x60], 0
and dword [ebp + 0x70], 0
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x18]
call fcn.004116bc
test al, al
je 0x40e2de
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
jb 0x40e2b8
mov eax, dword [ebp + 0x60]
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40e2de
push eax
pop ebx
jmp 0x40e2e1
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x74]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40e320
mov ecx, dword [ebp + 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
cmp eax, 0x1000
jb 0x40e317
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.00425716
pop ecx
pop ecx
and dword [ebp + 0x70], 0
xor eax, eax
mov word [ebp + 0x60], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x74], 7
jmp 0x40e339
mov ebx, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x40e34a
cmp ebx, 2
jne 0x40e34a
mov dword [edi + 0x4c], 1
cmp byte [edi + 0x24], 0
je 0x40e36f
cmp eax, 0xffffffff
je 0x40e36f
or dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x20]
or dword [ebp - 0x1c], 0xffffffff
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 0xffffffff
mov byte [edi + 0x1c], cl
mov dword [edi + 0x10], ecx
setne bl
mov byte [edi + 0x15], cl
je 0x40e394
push dword [ebp - 0x18]
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.004025c3
mov byte [edi + 0x25], 0
lea ecx, [ebp]
call fcn.00401a66
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 + 0x78]
xor ecx, ebp
call fcn.00425724
add ebp, 0x7c
leave
ret 8