Function at 0x42c110
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2a73
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 9
xor esi, esi
xor eax, eax
push str._Config__n
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], ax
call fcn.004024be
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [edi + esi*4]
call fcn.00435b70
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401dfc
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0
jb 0x42c19b
mov edx, dword [ebp - 0x48]
push edx
call fcn.00468992
add esp, 4
inc esi
cmp esi, 3
jl 0x42c168
push 0xa
push str.__Config__n
lea ecx, [ebp - 0x80]
call fcn.00401a0a
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 2
call fcn.0043d690
lea edx, [ebp - 0x64]
push edx
push eax
call fcn.0043f7f0
add esp, 0x10
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 0x81], al
jb 0x42c1f8
mov eax, dword [ebp - 0x48]
push eax
call fcn.00468992
add esp, 4
cmp byte [ebp - 0x81], 0
je 0x42c476
push ebx
call fcn.00443b10
push str..bak
lea ecx, [ebp - 0x2c]
push ebx
push ecx
mov byte [ebp - 0x81], al
call fcn.00402b62
add esp, 0x10
cmp byte [ebp - 0x81], 0
mov byte [ebp - 4], 3
je 0x42c327
lea edx, [ebp - 0x2c]
push edx
call fcn.00443b10
add esp, 4
test al, al
je 0x42c2fa
push str..bak
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402b62
add esp, 0xc
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x42c2d0
cmp dword [ebp - 0x18], 8
jb 0x42c278
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00468992
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [esi + 0x14], 8
jae 0x42c2aa
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00468d10
add esp, 0xc
jmp 0x42c2b5
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], 0
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], cx
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 3
jb 0x42c2e6
mov edx, dword [ebp - 0x48]
push edx
call fcn.00468992
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00443b10
add esp, 4
test al, al
jne 0x42c248
mov ecx, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x42c30a
lea ecx, [ebp - 0x2c]
cmp dword [ebx + 0x14], edi
jb 0x42c31b
mov eax, dword [ebx]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x42c32c
mov eax, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x42c32c
mov edi, 8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.0040268f
push 1
push 0x40
push 2
push ebx
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.00401de8
lea edx, [ebp - 0x48]
push edx
push eax
mov byte [ebp - 4], 8
call fcn.00401681
add esp, 8
cmp dword [ebp - 0x34], 0x10
mov esi, eax
jb 0x42c389
mov eax, dword [ebp - 0x48]
push eax
call fcn.00468992
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
cmp dword [edx + esi + 0xc], 0
lea ecx, [ebp - 0xcc]
sete byte [ebp - 0x82]
mov byte [ebp - 4], 3
call fcn.004017f8
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xcc], vtable.std::ios_base.0
call fcn.0046767d
add esp, 4
cmp byte [ebp - 0x82], 0
je 0x42c40c
push str.saved
push ebx
call fcn.00440290
mov ecx, eax
call fcn.00402842
cmp byte [ebp - 0x81], 0
je 0x42c463
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x42c403
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42c463
push ebx
push str.Error_occurred_while_saving
call fcn.00440290
mov ecx, eax
call fcn.004016b8
cmp byte [ebp - 0x81], 0
je 0x42c463
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00443b10
add esp, 4
test al, al
je 0x42c463
cmp dword [ebx + 0x14], edi
jb 0x42c440
mov eax, dword [ebx]
jmp 0x42c442
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x14], edi
jb 0x42c450
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x42c45b
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x18], edi
jb 0x42c47b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00468992
add esp, 4
jmp 0x42c47b
mov edi, 8
cmp dword [ebp - 0x50], 0x10
jb 0x42c48d
mov eax, dword [ebp - 0x64]
push eax
call fcn.00468992
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x6c], edi
jb 0x42c4b0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00468992
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret