Function at 0x41e910
Capabilities:
Check if file exists
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473323
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
push 0
mov esi, ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 8
cmp dword [ebx + 0x18], edi
jb 0x41e96b
mov eax, dword [ebx + 4]
jmp 0x41e96e
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41f01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f01c
mov eax, 3
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0xc0000000
mov dword [esi + 0x40], eax
call fcn.004202f0
mov edi, eax
test edi, edi
je 0x41eac6
xor ebx, ebx
cmp dword [0x4af498], ebx
je 0x41ea32
call fcn.0041ad80
cmp dword [eax + 4], ebx
jne 0x41ea32
push str.._src_file_npFileImplLogIx.cpp_371__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x4c]
call fcn.004014d0
mov dword [esp + 0x2b8], ebx
call fcn.0041ad80
mov ebx, eax
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x68]
call fcn.0041f950
mov byte [esp + 0x2b8], 1
cmp dword [eax + 0x18], 8
jb 0x41ea03
mov eax, dword [eax + 4]
jmp 0x41ea06
add eax, 4
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx + 0x10]
push 2
lea edx, [esp + 0x50]
push edx
push ebx
call eax
add esp, 0x10
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
mov eax, edi
jmp 0x41eff6
push str.._src_file_npFileImplLogIx.cpp_371__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x68]
call fcn.004014d0
mov dword [esp + 0x2b8], 2
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x4c]
call fcn.0041f950
mov esi, 8
mov byte [esp + 0x2b8], 3
cmp dword [eax + 0x18], esi
jb 0x41ea73
mov eax, dword [eax + 4]
jmp 0x41ea76
add eax, 4
push eax
mov ecx, 2
lea edx, [esp + 0x68]
call fcn.0041afc0
add esp, 4
cmp dword [esp + 0x60], esi
jb 0x41ea9b
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00452ad1
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x41eabf
mov edx, dword [esp + 0x68]
push edx
call fcn.00452ad1
add esp, 4
mov eax, edi
jmp 0x41eff6
mov ecx, esi
call fcn.004205d0
mov edi, eax
test edi, edi
je 0x41ebd0
cmp dword [0x4af498], 0
je 0x41eb36
call fcn.0041ad80
cmp dword [eax + 4], 0
jne 0x41eb36
push str.._src_file_npFileImplLogIx.cpp_378__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x4c]
call fcn.004014d0
mov dword [esp + 0x2b8], 4
call fcn.0041ad80
mov ebx, eax
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x68]
call fcn.0041f950
mov byte [esp + 0x2b8], 5
cmp dword [eax + 0x18], 8
jb 0x41ea03
mov eax, dword [eax + 4]
jmp 0x41ea06
push str.._src_file_npFileImplLogIx.cpp_378__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x68]
call fcn.004014d0
mov dword [esp + 0x2b8], 6
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x4c]
call fcn.0041f950
mov ebx, 7
mov esi, 8
mov byte [esp + 0x2b8], bl
cmp dword [eax + 0x18], esi
jb 0x41eb7b
mov eax, dword [eax + 4]
jmp 0x41eb7e
add eax, 4
push eax
mov ecx, 2
lea edx, [esp + 0x68]
call fcn.0041afc0
add esp, 4
cmp dword [esp + 0x60], esi
jb 0x41eba3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00452ad1
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
jb 0x41eabf
mov edx, dword [esp + 0x68]
push edx
call fcn.00452ad1
add esp, 4
mov eax, edi
jmp 0x41eff6
mov ecx, dword [esi + 0x24]
lea eax, [esi + 0x20]
push ecx
call fcn.00420c40
mov edi, eax
call fcn.00421290
mov ecx, dword [esi + 0x20]
shl edi, 4
mov eax, dword [eax + edi + 4]
cmp dword [ecx + eax], 0x32812621
jne 0x41ed02
cmp dword [ecx + eax + 4], 0x32812622
jne 0x41ed02
lea eax, [esi + 0x30]
call fcn.00413f00
mov edx, dword [ebp + 8]
push edx
mov edx, ebx
mov ecx, esi
call fcn.0041f150
mov edi, eax
test edi, edi
je 0x41eff4
cmp dword [0x4af498], 0
je 0x41ec97
call fcn.0041ad80
cmp dword [eax + 4], 0
jne 0x41ec97
push str.._src_file_npFileImplLogIx.cpp_393__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x4c]
call fcn.004014d0
mov dword [esp + 0x2b8], 8
call fcn.0041ad80
mov ebx, eax
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x68]
call fcn.0041f950
mov byte [esp + 0x2b8], 9
cmp dword [eax + 0x18], 8
jb 0x41ec7f
mov eax, dword [eax + 4]
jmp 0x41ec82
add eax, 4
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx + 0x10]
push 2
lea edx, [esp + 0x50]
push edx
push ebx
call eax
add esp, 0x10
jmp 0x41ece9
push str.._src_file_npFileImplLogIx.cpp_393__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x4c]
call fcn.004014d0
mov dword [esp + 0x2b8], 0xa
call fcn.0041bcc0
push eax
mov ecx, edi
lea esi, [esp + 0x68]
call fcn.0041f950
mov byte [esp + 0x2b8], 0xb
cmp dword [eax + 0x18], 8
jb 0x41ecd4
mov eax, dword [eax + 4]
jmp 0x41ecd7
add eax, 4
push eax
mov ecx, 2
lea edx, [esp + 0x4c]
call fcn.0041afc0
add esp, 4
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
mov eax, edi
jmp 0x41eff6
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 0x154], eax
jae 0x41eff4
mov eax, edi
call fcn.00413f00
push 0x206
lea ecx, [esp + 0xa2]
push 0
push ecx
mov word [esp + 0xa8], 0
call fcn.0045a220
add esp, 0xc
cmp dword [ebx + 0x18], 8
lea edi, [ebx + 4]
jb 0x41ed52
mov eax, dword [edi]
jmp 0x41ed54
mov eax, edi
lea edx, [esp + 0x9c]
push edx
push 0
push 0
push 0
push eax
call fcn.004544c0
add esp, 0x14
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004014d0
push str._bak
lea ecx, [esp + 0x68]
mov dword [esp + 0x2bc], 0xc
call fcn.004014d0
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xa0]
mov byte [esp + 0x2bc], 0xd
call fcn.0040dfc0
push ebx
lea ecx, [esp + 0x84]
call fcn.00408ae0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x80]
mov byte [esp + 0x2b8], 0xe
call fcn.0041f6f0
push 0
mov ecx, eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x68]
push edx
push eax
lea edx, [esp + 0x8c]
push edx
or eax, 0xffffffff
call fcn.0040e3d0
cmp dword [esp + 0x98], 8
mov eax, dword [esp + 0x84]
jae 0x41ee09
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x41ee78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41ee78
push str.._src_file_npFileImplLogIx.cpp_428__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x14]
call fcn.004014d0
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x2c0], 0xf
push eax
call fcn.0041c9a0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00401510
lea ecx, [esp + 0x80]
call fcn.00401510
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
mov eax, 1
jmp 0x41eff6
mov ecx, dword [esp + 0x84]
mov eax, 8
cmp dword [esp + 0x98], eax
jae 0x41ee94
lea ecx, [esp + 0x84]
cmp dword [ebx + 0x18], eax
jb 0x41ee9d
mov eax, dword [edi]
jmp 0x41ee9f
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41eecf
push str.._src_file_npFileImplLogIx.cpp_437__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x14]
call fcn.004014d0
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 0x10
push ecx
jmp 0x41ee3f
mov edx, dword [ebp + 8]
push edx
mov edx, ebx
mov ecx, esi
call fcn.0041f150
mov ebx, eax
test ebx, ebx
je 0x41efd6
cmp dword [0x4af498], 0
je 0x41ef53
call fcn.0041ad80
cmp dword [eax + 4], 0
jne 0x41ef53
push str.._src_file_npFileImplLogIx.cpp_445__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x14]
call fcn.004014d0
mov byte [esp + 0x2b8], 0x11
call fcn.0041ad80
mov edi, eax
call fcn.0041bcc0
push eax
mov ecx, ebx
lea esi, [esp + 0x30]
call fcn.0041f950
mov byte [esp + 0x2b8], 0x12
cmp dword [eax + 0x18], 8
jb 0x41ef3b
mov eax, dword [eax + 4]
jmp 0x41ef3e
add eax, 4
mov ecx, dword [edi]
push eax
mov eax, dword [ecx + 0x10]
push 2
lea edx, [esp + 0x18]
push edx
push edi
call eax
add esp, 0x10
jmp 0x41efa2
push str.._src_file_npFileImplLogIx.cpp_445__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x14]
call fcn.004014d0
mov byte [esp + 0x2b8], 0x13
call fcn.0041bcc0
push eax
mov ecx, ebx
lea esi, [esp + 0x30]
call fcn.0041f950
mov byte [esp + 0x2b8], 0x14
cmp dword [eax + 0x18], 8
jb 0x41ef8d
mov eax, dword [eax + 4]
jmp 0x41ef90
add eax, 4
push eax
mov ecx, 2
lea edx, [esp + 0x14]
call fcn.0041afc0
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00401510
lea ecx, [esp + 0x10]
call fcn.00401510
lea ecx, [esp + 0x80]
call fcn.00401510
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
mov eax, ebx
jmp 0x41eff6
lea ecx, [esp + 0x80]
call fcn.00401510
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
xor eax, eax
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00452816
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0041f150
mov ebx, eax
test ebx, ebx
je 0x41eff4
cmp dword [0x4af498], 0
je 0x41f0b6
call fcn.0041ad80
cmp dword [eax + 4], 0
jne 0x41f0b6
push str.._src_file_npFileImplLogIx.cpp_457__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x4c]
call fcn.004014d0
mov dword [esp + 0x2b8], 0x15
call fcn.0041ad80
mov edi, eax
call fcn.0041bcc0
push eax
mov ecx, ebx
lea esi, [esp + 0x68]
call fcn.0041f950
mov byte [esp + 0x2b8], 0x16
cmp dword [eax + 0x18], 8
jb 0x41f087
mov eax, dword [eax + 4]
jmp 0x41f08a
add eax, 4
mov edx, dword [edi]
mov ecx, dword [edx + 0x10]
push eax
push 2
lea eax, [esp + 0x50]
push eax
push edi
call ecx
add esp, 0x10
lea ecx, [esp + 0x64]
call fcn.00401510
lea ecx, [esp + 0x48]
call fcn.00401510
mov eax, ebx
jmp 0x41eff6
push str.._src_file_npFileImplLogIx.cpp_457__:__npz::log::npFileImplLogIx::openSaveFile_
lea ecx, [esp + 0x14]
call fcn.004014d0
mov dword [esp + 0x2b8], 0x17
call fcn.0041bcc0
push eax
mov ecx, ebx
lea esi, [esp + 0x30]
call fcn.0041f950
mov byte [esp + 0x2b8], 0x18
cmp dword [eax + 0x18], edi
jb 0x41f0f2
mov eax, dword [eax + 4]
jmp 0x41f0f5
add eax, 4
push eax
mov ecx, 2
lea edx, [esp + 0x14]
call fcn.0041afc0
add esp, 4
cmp dword [esp + 0x44], edi
jb 0x41f11a
mov edx, dword [esp + 0x30]
push edx
call fcn.00452ad1
add esp, 4
xor eax, eax
cmp dword [esp + 0x28], edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
jb 0x41f140
mov eax, dword [esp + 0x14]
push eax
call fcn.00452ad1
add esp, 4
mov eax, ebx
jmp 0x41eff6