Function at 0x40f5b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x447004]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, ecx
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 8], eax
mov eax, dword [eax]
push esi
mov dword [esp + 0x38], eax
mov esi, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x70]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], ecx
lea eax, [edi + 0x20]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], esi
add ecx, dword [0x447a78]
push eax
push ecx
mov dword [esp + 0x54], 0x447a78
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [0x447a7c]
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovne ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40f8b7
push edi
push esi
push ebx
call fcn.00426ea0
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x48]
add ecx, dword [edx]
push eax
lea eax, [edi + 0x30]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
xor esi, esi
add esp, 0xc
test eax, eax
cmovne esi, dword [esp + 0x20]
mov dword [esp + 0x14], esi
test esi, esi
je 0x40f8b7
push edi
push dword [esp + 0x2c]
push esi
call fcn.00426ea0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x54]
xor ecx, dword [esp + 0x2c]
call fcn.0041e920
add esp, 4
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f6e3
test al, 1
je 0x40f7cd
mov eax, edi
test edi, edi
je 0x40f705
mov cl, byte [edi + ebx - 1]
cmp cl, 0x2f
jne 0x40f6f9
mov byte [edi + ebx - 1], 0x5c
jmp 0x40f705
cmp cl, 0x5c
je 0x40f705
mov byte [edi + ebx], 0x5c
lea eax, [edi + 1]
push 7
lea esi, [eax + ebx]
push str.live.db
push esi
call fcn.00426ea0
add esp, 0xc
mov byte [esi + 7], 0
cmp dword [ebp + 0x10], 0
jne 0x40f748
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 0
push 0
push dword [esp + 0x14]
call fcn.0040dbb0
add esp, 0xc
test eax, eax
je 0x40f748
mov ecx, eax
call fcn.00405cd0
jmp 0x40f7d5
lea ecx, [esp + 0x50]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f750
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x50]
sub ecx, edx
mov edx, edi
push ecx
push eax
mov ecx, esi
call fcn.0040f570
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x40f787
push 9
push str._live.db
push eax
call fcn.00426ea0
add esp, 0xc
push esi
push ebx
call fcn.0042af39
push 0xb
push str.live.db.jrn
mov edx, edi
mov ecx, ebx
call fcn.0040f570
add esp, 0x10
mov byte [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40f7bc
push 0xd
push str._live.db.jrn
push eax
call fcn.00426ea0
add esp, 0xc
push esi
push ebx
call fcn.0042af39
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x40f7d5
test al, 2
je 0x40f8b7
mov eax, edi
test edi, edi
je 0x40f7f7
mov cl, byte [edi + ebx - 1]
cmp cl, 0x2f
jne 0x40f7eb
mov byte [edi + ebx - 1], 0x5c
jmp 0x40f7f7
cmp cl, 0x5c
je 0x40f7f7
mov byte [edi + ebx], 0x5c
lea eax, [edi + 1]
push 7
lea esi, [eax + ebx]
push str.dead.db
push esi
call fcn.00426ea0
add esp, 0xc
mov byte [esi + 7], 0
cmp dword [ebp + 0x10], 0
jne 0x40f83a
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 0
push 0
push dword [esp + 0x14]
call fcn.0040dd80
add esp, 0xc
test eax, eax
je 0x40f83a
mov ecx, eax
call fcn.00405cd0
jmp 0x40f8b7
lea ecx, [esp + 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f841
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x50]
sub ecx, edx
mov edx, edi
push ecx
push eax
mov ecx, esi
call fcn.0040f570
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x40f878
push 9
push str._dead.db
push eax
call fcn.00426ea0
add esp, 0xc
push esi
push ebx
call fcn.0042af39
push 0xb
push str.dead.db.jrn
mov edx, edi
mov ecx, ebx
call fcn.0040f570
add esp, 0x10
mov byte [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40f8ad
push 0xd
push str._dead.db.jrn
push eax
call fcn.00426ea0
add esp, 0xc
push esi
push ebx
call fcn.0042af39
add esp, 8
lea ecx, [esp + 0x30]
call fcn.0041dfc0
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00425576
mov esp, ebp
pop ebp
ret