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

Disassembly:
push 0x2e0
mov eax, 0x44f147
call fcn.0042fba6
xor edi, edi
inc edi
push 0x466800
lea esi, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.004026e4
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004022f3
mov eax, esi
push eax
lea esi, [ebp - 0x34]
call fcn.004026e4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x447742
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x447760
shr eax, 4
not eax
and eax, edi
mov dword [ebp - 0x2a8], eax
jmp 0x44780b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x447805
cmp eax, 3
je 0x447805
cmp eax, 0x7b
je 0x447805
lea eax, [ebp - 0x34]
push eax
lea esi, [ebp - 0x2cc]
call fcn.004026e4
cmp dword [ebp - 0x2b4], 8
mov eax, dword [ebp - 0x2c8]
jae 0x4477a5
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x2a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4477ec
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
cmp dword [ebp - 0x2a4], ebx
push ebx
setne al
xor ecx, ecx
push edi
lea esi, [ebp - 0x2cc]
cmp eax, ebx
sete cl
mov dword [ebp - 0x2a8], ecx
call fcn.0040273f
mov eax, dword [ebp - 0x2a8]
jmp 0x4477fb
push ebx
push edi
lea esi, [ebp - 0x2cc]
call fcn.0040273f
xor eax, eax
mov dword [ebp - 0x2a8], edi
cmp eax, ebx
jne 0x44780b
mov dword [ebp - 0x2a8], ebx
push ebx
push edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040273f
mov eax, dword [ebp - 0x2a8]
cmp eax, ebx
je 0x447a15
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov esi, esp
mov dword [ebp - 0x2a8], esp
push eax
call fcn.004026e4
lea eax, [ebp - 0x34]
push eax
call fcn.00404690
add esp, 0x20
push 0x45bda0
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.0040174a
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.004022f3
sub esp, 0x1c
lea eax, [ebp - 0x34]
mov esi, esp
mov dword [ebp - 0x2a8], esp
push eax
call fcn.004026e4
lea ebx, [ebp - 0x2cc]
call fcn.00404567
add esp, 0x1c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2b8]
xor ebx, ebx
cmp eax, ebx
ja 0x4478ab
push ebx
push edi
lea esi, [ebp - 0x2cc]
call fcn.0040273f
jmp 0x4479d0
lea edi, [eax - 1]
lea eax, [ebp - 0x2cc]
call fcn.00401694
cmp word [eax], 0x5c
jne 0x4478f8
mov edi, dword [ebp - 0x2b8]
dec edi
lea eax, [ebp - 0x2cc]
call fcn.00401694
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x2b4], 8
mov eax, dword [ebp - 0x2c8]
jae 0x4478eb
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.0040215a
cmp dword [ebp - 0x2b8], 3
jb 0x4479bf
lea eax, [ebp - 0x2cc]
push eax
lea esi, [ebp - 0x2ec]
call fcn.004026e4
cmp dword [ebp - 0x2d4], 8
mov eax, dword [ebp - 0x2e8]
jae 0x44792c
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x447941
test al, 0x10
je 0x447941
xor edi, edi
inc edi
jmp 0x447943
xor edi, edi
push ebx
push 1
lea esi, [ebp - 0x2ec]
call fcn.0040273f
cmp edi, ebx
jne 0x4479bf
sub esp, 0x1c
mov dword [ebp - 0x2a8], esp
mov ebx, esp
sub esp, 0x1c
lea eax, [ebp - 0x2cc]
mov esi, esp
mov dword [ebp - 0x2a8], esp
push eax
call fcn.004026e4
call fcn.0040407c
add esp, 0x1c
call fcn.004040c6
add esp, 0x1c
test eax, eax
je 0x4479a9
cmp dword [ebp - 0x2b4], 8
mov eax, dword [ebp - 0x2c8]
jae 0x4479a0
lea eax, [ebp - 0x2c8]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push 1
lea esi, [ebp - 0x2cc]
call fcn.0040273f
xor edi, edi
inc edi
xor ebx, ebx
jmp 0x4479d0
push ebx
push 1
lea esi, [ebp - 0x2cc]
call fcn.0040273f
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x4479dc
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4479e8
lea eax, [ebp - 0x4c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [ebp + 0x40], bl
je 0x447a09
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x447a02
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push edi
lea esi, [ebp - 0x34]
call fcn.0040273f
xor ebx, ebx
push ebx
push edi
lea esi, [ebp - 0x50]
call fcn.0040273f
push ebx
push edi
lea esi, [ebp + 8]
call fcn.0040273f
push ebx
push edi
lea esi, [ebp + 0x24]
call fcn.0040273f
call fcn.0042fc29
ret 0x3c