Function at 0x1002ede0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cdd21
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10102f10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10092e90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x10108e24]
test al, 1
jne 0x1002ee5f
or eax, 1
mov dword [0x10108e20], 0
mov dword [0x10108e24], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call fcn.1003a002
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x1002bdf0
push 0x10108e20
call fcn.1003a67b
add esp, 0x10
test eax, eax
je 0x1002f0c8
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 2
push eax
call fcn.1003a03c
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10108e28
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x1002f064
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x10108e48]
test al, 1
jne 0x1002ef29
or eax, 1
mov dword [0x10108e44], 0
mov dword [0x10108e48], eax
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 5
push eax
call fcn.1003a002
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 6
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x1002bd00
push 0x10108e44
call fcn.1003a67b
add esp, 0x10
test eax, eax
je 0x1002f0ab
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 7
push eax
call fcn.1003a03c
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x10108e4c
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x1002f064
mov eax, dword [0x10108e88]
test al, 1
jne 0x1002efda
or eax, 1
mov dword [0x10108e84], 0
mov dword [0x10108e88], eax
mov byte [ebp - 0x21a], 0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xa
push eax
call fcn.1003a002
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x21a]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
push eax
push 0x1002bbf0
push 0x10108e84
call fcn.1003a67b
add esp, 0x10
test eax, eax
je 0x1002f08e
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0xc
push eax
call fcn.1003a03c
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x10108e90
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.10042ab0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064e61
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xd
push eax
call fcn.1003a05d
add esp, 4
mov byte [ebp - 4], 0xb
test al, al
je 0x1002f0f7
jmp 0x1002f0e1
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
call fcn.1003a05d
add esp, 4
mov byte [ebp - 4], 6
test al, al
jne 0x1002f0fc
jmp 0x1002f0f7
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
call fcn.1003a05d
add esp, 4
mov byte [ebp - 4], 1
jmp 0x1002f0c2
sub esp, 8
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.100080b0
call fcn.1000c770
call fcn.1003a693
sub esp, 8
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.100080b0
call fcn.1000c770
int3