Function at 0x1002e070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f5e6
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x100a04fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
xor ebx, ebx
mov esi, 0x10
mov eax, esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 4], ebx
call fcn.10073d20
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead0009
lea ecx, [ebp - 0x78]
push 0x1aabeef
push ecx
call fcn.10001af0
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x1002e0e3
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x64], esi
jb 0x1002e10b
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 4
call fcn.10073d20
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xc8], eax
cmp eax, ebx
je 0x1002e12a
mov dword [eax], 0xabab01aa
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1002e14c
mov dword [eax], 0xcdcd01aa
jmp 0x1002e14c
test byte [0x100a4bb0], 1
mov dword [ebp - 0xbc], 6
jne 0x1002e186
or dword [0x100a4bb0], 1
mov dword [ebp - 4], 2
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xbc]
push edx
mov edi, 0x100a4b60
call fcn.100235e0
test al, al
je 0x1002e2cc
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x5c]
mov dword [ebp - 4], 3
call fcn.10023cb0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x1002e1d8
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.100041d0
jmp 0x1002e1e6
push str.EnterFunction
push ecx
call fcn.10012390
add esp, 8
mov ecx, dword [ebp - 0x3c]
push 0x1ff
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.10001ab0
mov edi, eax
mov byte [ebp - 4], 4
test byte [0x100a4bb0], 1
jne 0x1002e228
or dword [0x100a4bb0], 1
mov byte [ebp - 4], 5
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 4]
mov ecx, 0x100a4b64
mov dword [ebp - 0xbc], 0x100a4b64
call eax
mov byte [ebp - 4], 6
mov ecx, dword [0x100a4bac]
cmp ecx, ebx
je 0x1002e28f
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x1002e25e
mov eax, dword [edi]
jmp 0x1002e260
mov eax, edi
mov edx, dword [ecx]
push 0x1aa
push str.FileHandler::SetFileReadOnly
push str.FileHandler.cpp
push eax
mov eax, dword [edx + 8]
push 6
call eax
mov byte [ebp - 4], 4
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 8]
mov ecx, 0x100a4b64
call eax
jmp 0x1002e2a8
mov byte [ebp - 4], 4
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 8]
mov ecx, 0x100a4b64
call eax
mov esi, 8
cmp dword [ebp - 0x64], esi
jb 0x1002e2ba
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.10023b80
jmp 0x1002e2d1
mov esi, 8
mov eax, dword [ebp - 0xc8]
cmp eax, ebx
je 0x1002e2e1
mov dword [eax], 0xcdcd01ab
test byte [0x100a4bb0], 1
mov dword [ebp - 0xbc], 6
jne 0x1002e31b
or dword [0x100a4bb0], 1
mov dword [ebp - 4], 7
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xbc]
push eax
mov edi, 0x100a4b60
call fcn.100235e0
test al, al
je 0x1002e485
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0xc0]
push ecx
push str.EnterFunction_Path_
lea edi, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.10023cb0
mov ecx, eax
call fcn.10032000
add esp, 4
push eax
call fcn.100125f0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xbc], eax
mov eax, dword [eax + 0x1c]
add esp, 8
lea esi, [ebp - 0x78]
call fcn.10023e50
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0xbc]
mov edi, eax
call fcn.10003bf0
mov edi, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x64], edi
jb 0x1002e3b1
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
xor eax, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x78], ax
call fcn.10001ab0
mov esi, eax
mov byte [ebp - 4], 0xa
test byte [0x100a4bb0], 1
jne 0x1002e402
or dword [0x100a4bb0], 1
mov byte [ebp - 4], 0xb
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 4]
mov ecx, 0x100a4b64
mov dword [ebp - 0xbc], ecx
call eax
mov byte [ebp - 4], 0xc
mov ecx, dword [0x100a4bac]
cmp ecx, ebx
je 0x1002e44a
cmp dword [esi + 0x14], edi
jb 0x1002e42f
mov eax, dword [esi]
jmp 0x1002e431
mov eax, esi
mov edx, dword [ecx]
push 0x1ab
push str.FileHandler::SetFileReadOnly
push str.FileHandler.cpp
push eax
mov eax, dword [edx + 8]
push 6
call eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x100a4b64]
mov eax, dword [edx + 8]
mov ecx, 0x100a4b64
call eax
cmp dword [ebp - 0x40], edi
jb 0x1002e470
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.10023b80
mov esi, 8
mov edi, dword [ebp - 0xc0]
push edi
lea ecx, [ebp - 0xc1]
call fcn.1002da80
add esp, 4
test al, al
je 0x1002e5c1
cmp byte [ebp - 0xc1], bl
jne 0x1002e5c8
mov eax, dword [ebp - 0xc8]
cmp eax, ebx
je 0x1002e4be
mov dword [eax], 0xcdcd01b4
test byte [0x100a4bb0], 1
mov dword [ebp - 0xbc], 2
jne 0x1002e4f8
or dword [0x100a4bb0], 1
mov dword [ebp - 4], 0xd
call fcn.10022f20
push 0x10082b20
call fcn.10072493
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xbc]
push eax
mov edi, 0x100a4b60
call fcn.100235e0
test al, al
je 0x1002e5c1
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x38]
mov dword [ebp - 4], 0xe
call fcn.10023cb0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.100237d0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x1002e559
mov ecx, dword [ebp - 0xc0]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, eax
call fcn.100040c0
jmp 0x1002e569
mov edx, dword [ebp - 0xc0]
push edx
push ecx
call fcn.100125f0
add esp, 8
mov ecx, dword [ebp - 0x18]
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
call fcn.10001ab0
mov ebx, eax
push 0x1b4
push str.FileHandler::SetFileReadOnly
push str.FileHandler.cpp
push 2
mov byte [ebp - 4], 0xf
call fcn.100230e0
mov ecx, eax
call fcn.10023680
cmp dword [ebp - 0x40], 8
jb 0x1002e5b1
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.10023b80
xor al, al
jmp 0x1002e818
cmp dword [edi + 0x14], esi
jb 0x1002e5d1
mov eax, dword [edi]
jmp 0x1002e5d3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002e691
mov eax, dword [ebp - 0xc8]
cmp eax, ebx
je 0x1002e5f3
mov dword [eax], 0xcdcd01bb
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 2
call fcn.100230e0
mov edi, eax
call fcn.100235e0
test al, al
je 0x1002e5c1
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x38]
mov dword [ebp - 4], 0x10
call fcn.10023cb0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.100237d0
mov ecx, dword [ebp - 0xc0]
mov esi, eax
call fcn.100237a0
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001ab0
mov ebx, eax
mov byte [ebp - 4], 0x11
push 0x1bb
push str.FileHandler::SetFileReadOnly
push str.FileHandler.cpp
push 2
call fcn.100230e0
mov ecx, eax
call fcn.10023680
lea ecx, [ebp - 0x54]
call fcn.10002a10
jmp 0x1002e5b1
and eax, 0xfffffffe
cmp dword [edi + 0x14], esi
jb 0x1002e69d
mov ecx, dword [edi]
jmp 0x1002e69f
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov eax, dword [ebp - 0xc8]
jne 0x1002e741
cmp eax, ebx
je 0x1002e6bf
mov dword [eax], 0xcdcd01ca
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 2
call fcn.100230e0
mov edi, eax
call fcn.100235e0
test al, al
je 0x1002e5c1
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x38]
mov dword [ebp - 4], 0x12
call fcn.10023cb0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.100237d0
mov ecx, dword [ebp - 0xc0]
mov esi, eax
call fcn.100237a0
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001ab0
mov ebx, eax
mov byte [ebp - 4], 0x13
push 0x1ca
jmp 0x1002e66c
cmp eax, ebx
je 0x1002e74b
mov dword [eax], 0xcdcd01ce
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 6
call fcn.100230e0
mov edi, eax
call fcn.100235e0
test al, al
je 0x1002e816
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov ecx, dword [ebp - 0xc0]
push ecx
push str.ExitFunction_Path_
lea edi, [ebp - 0x9c]
mov dword [ebp - 4], 0x14
call fcn.10023cb0
mov ecx, eax
call fcn.10032000
add esp, 4
push eax
call fcn.100125f0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0xb8]
push edx
mov eax, edi
push eax
call fcn.10023d20
mov ecx, eax
call fcn.10001ab0
mov ebx, eax
push 0x1ce
push str.FileHandler::SetFileReadOnly
push str.FileHandler.cpp
push 6
mov byte [ebp - 4], 0x15
call fcn.100230e0
mov ecx, eax
call fcn.10023680
lea ecx, [ebp - 0xb8]
call fcn.10002a10
mov ecx, edi
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.10023b80
mov al, 1
lea esp, [ebp - 0xd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret