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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4102b8
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x48600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
sub esp, 0x18
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402c00
lea ecx, [ebp - 0x2c]
call fcn.00406360
add esp, 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x110]
call fcn.00402c00
cmp dword [ebp - 0xfc], 0x10
lea eax, [ebp - 0x110]
cmovae eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0xfc]
cmp eax, 0xffffffff
jne 0x405de6
cmp ecx, 0x10
jb 0x405dce
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405dc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f74
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 7
jb 0x40634f
jmp 0x405f7a
test al, 0x10
je 0x405f42
cmp ecx, 0x10
jb 0x405e22
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405e18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f74
push ecx
push edx
call fcn.0040f0fe
add esp, 8
push 0xb0
lea eax, [ebp - 0xf4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0xf4]
push 2
push eax
call fcn.00401cd0
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa4], 0
jne 0x4060da
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xf0]
call fcn.00402860
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x405ed8
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ece
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406304
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x405f1e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405f14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406304
push ecx
push edx
call fcn.0040f0fe
add esp, 8
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
call fcn.004069d0
mov eax, 1
jmp 0x406333
cmp ecx, 0x10
jb 0x405dce
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405dc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405dc4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 7
push str.mkdir__
push ecx
push dword [ebp - 0xf8]
lea ecx, [ebp - 0x44]
call fcn.004076a0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
cmp eax, 1
jb 0x405fcb
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0x44]
jmp 0x405fe9
push 1
push 0x41256c
mov byte [ebp - 0xf8], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0xf8]
push 1
call fcn.00403690
mov dword [ebp - 0x100], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0xfc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x110], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x100], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x110]
cmp dword [ebp - 0xfc], 0x10
cmovae eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0xfc]
add esp, 4
cmp ecx, 0x10
jb 0x406083
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406079
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060d4
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
cmp ecx, 0x10
jb 0x405e22
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405e18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405e18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
cmp esi, edi
je 0x40615c
push esi
lea ecx, [ebp - 0x44]
call fcn.00402c00
mov byte [ebp - 4], 6
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0xf4]
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x44]
call fcn.004077a0
add esp, 4
mov edx, 0x412674
mov ecx, eax
call fcn.00406db0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x406157
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40614d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40614d
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
add esi, 0x18
jmp 0x4060e4
lea ecx, [ebp - 0xf4]
call fcn.00401c30
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xf0]
call fcn.00402860
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4061e5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406304
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x40622b
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406221
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406304
push ecx
push edx
call fcn.0040f0fe
add esp, 8
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
call fcn.004069d0
xor eax, eax
jmp 0x406333
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
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
call fcn.004069d0
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040eba8
mov esp, ebp
pop ebp
ret
call fcn.00401280
int3