Function at 0x420350
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e651
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x469644]
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 edi, ecx
xor eax, eax
push eax
lea esi, [edi + 0x54]
mov word [ebp - 0x30], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x104], esi
call fcn.00403a30
mov eax, dword [ebp - 0x30]
xor bl, bl
cmp dword [ebp - 0x1c], 8
jae 0x4203be
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4203e8
test al, 0x10
je 0x4203dc
mov dword [0x46ad7c], 0
mov bl, 1
jmp 0x4203f3
mov dword [0x46ad7c], 0xffffffff
jmp 0x4203f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x46ad7c], eax
cmp dword [ebp - 0x1c], 8
jb 0x420405
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00426e9f
add esp, 4
test bl, bl
jne 0x420481
cmp dword [esi + 0x14], 8
jb 0x420411
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x420481
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x100], esp
xor ebx, ebx
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00403a30
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x104], esp
mov word [esi], ax
push 0x2e
mov eax, str.Log_Backup_Ordner_konnte_nicht_erstellt_werden
call fcn.00404210
mov dword [ebp - 4], 0xffffffff
call fcn.00410d30
add esp, 0x38
jmp 0x42084c
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
lea ebx, [ebp - 0xd8]
mov dword [eax + 0xc], ecx
call fcn.00406c30
sub esp, 0xc
mov dword [ebp - 4], 1
mov esi, esp
xor edi, edi
mov dword [ebp - 0x108], esp
mov ebx, 7
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
push edi
mov eax, 0x45d4fc
mov word [esi], dx
call fcn.00404210
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov dword [ebp - 0xfc], esp
mov word [esi], ax
push 1
mov eax, 0x4615d8
call fcn.00404210
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xf8], esp
push edi
lea eax, [ebp - 0xd8]
xor edx, edx
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00403a30
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004068e0
add esp, 0x54
mov edi, eax
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 4
call fcn.00404be0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 8
jb 0x420567
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00426e9f
add esp, 4
mov edx, dword [ebp - 0x104]
mov edi, dword [ebp - 0x100]
push edx
lea eax, [ebp - 0x68]
push eax
mov ebx, edi
call fcn.00412e70
push eax
mov eax, 0x45de4c
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.0040f880
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0xd8]
lea ebx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00413010
push eax
mov eax, 0x45de4c
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.0040f880
add esp, 4
mov ecx, eax
mov eax, 0x46eb50
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00413010
cmp dword [ebp - 0x70], 8
jb 0x4205ee
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00426e9f
add esp, 4
mov esi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x8c], 8
jb 0x42061c
mov eax, dword [ebp - 0xa0]
push eax
call fcn.00426e9f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], cx
cmp dword [ebp - 0xa8], 8
jb 0x420649
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00426e9f
add esp, 4
xor eax, eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], ax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x54], 8
jb 0x420674
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00426e9f
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf8], esp
mov dword [ecx + 0x14], esi
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ecx + 0x10], ebx
push ebx
xor edx, edx
mov word [ecx], ax
lea esi, [edi + 0x9c]
push esi
or eax, 0xffffffff
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
call fcn.00403a30
call fcn.00405dd0
add esp, 0x1c
cmp al, bl
je 0x42078f
mov eax, dword [ebp - 0x4c]
mov ecx, 8
cmp dword [ebp - 0x38], ecx
jae 0x4206c6
lea eax, [ebp - 0x4c]
cmp dword [esi + 0x14], ecx
jb 0x4206cd
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf8], esp
xor edx, edx
push ebx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov word [ecx], dx
push edi
test eax, eax
je 0x42074f
or eax, 0xffffffff
call fcn.00403a30
lea eax, [ebp - 0x30]
push str.Log_Datei_Sicherung:_Erfolgreich__
push eax
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.00404920
sub esp, 0x14
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
mov byte [ebp - 4], 0x10
call fcn.00410d30
add esp, 0x38
cmp dword [ebp - 0x1c], 8
jb 0x42080b
mov ecx, dword [ebp - 0x30]
jmp 0x420802
or eax, 0xffffffff
call fcn.00403a30
lea eax, [ebp - 0x30]
push str.Log_Datei_Sicherung:_Konnte_nicht_kopiert_werden__
push eax
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00404920
sub esp, 0x14
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
mov byte [ebp - 4], 0x13
jmp 0x420735
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf8], esp
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00403a30
lea eax, [ebp - 0xf4]
push str.Log_Datei_Sicherung:_Datei_nicht_gefunden__
push eax
mov ebx, esi
mov byte [ebp - 4], 0x14
call fcn.00404920
sub esp, 0x14
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
mov eax, 0x45d75c
call fcn.0040f880
add esp, 4
mov byte [ebp - 4], 0x16
call fcn.00410d30
add esp, 0x38
cmp dword [ebp - 0xe0], 8
jb 0x42080b
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.00426e9f
add esp, 4
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x420821
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00426e9f
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0xc4], esi
jb 0x42084c
mov ecx, dword [ebp - 0xd8]
push ecx
call fcn.00426e9f
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.0042575d
mov esp, ebp
pop ebp
ret