Function at 0x408a70
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4105f5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x48600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
lea edi, [ebp - 0x2c]
push eax
call fcn.00402c00
mov ecx, edi
call fcn.00406360
add esp, 0x18
mov eax, edi
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x408c1b
cmp ecx, 0x10
jb 0x408b0c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cdb
push ecx
push edx
call fcn.0040f0fe
add esp, 8
push 0x41256c
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402c00
lea ecx, [ebp - 0x60]
call fcn.00406360
push eax
mov edx, str.mkdir__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004030d0
add esp, 0x1c
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004031d0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x408b55
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0x10
jb 0x408b93
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c15
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x408bd9
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408bcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c15
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x408c54
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408c4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test al, 0x10
je 0x408cac
cmp ecx, 0x10
jb 0x408c54
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cdb
push ecx
push edx
call fcn.0040f0fe
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.00402c00
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402c00
mov byte [ebp - 4], 0
call fcn.00401740
mov ecx, dword [ebp + 0x1c]
add esp, 0x30
cmp ecx, 0x10
jb 0x408ceb
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408ce1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408ce1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x10
jb 0x408b0c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408b02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret