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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4109fe
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004028b0
lea ecx, [ebp - 0x28]
call fcn.00406410
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1b0]
call fcn.004028b0
cmp dword [ebp - 0x19c], 0x10
lea eax, [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x19c]
cmp eax, 0xffffffff
jne 0x406830
cmp ecx, 0x10
jb 0x406818
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40680e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406913
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, accept
sub eax, ecx
cmp eax, 7
jb 0x406cc3
jmp 0x406919
test al, 0x10
je 0x4068e1
cmp ecx, 0x10
jb 0x40686c
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406862
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406913
push ecx
push edx
call fcn.0040f66d
add esp, 8
push 0xb8
lea eax, [ebp - 0x190]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x190]
push 0x20
push eax
call fcn.004026d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x184], 0
je 0x406a97
lea ecx, [ebp - 0x180]
call fcn.00402c30
test eax, eax
jne 0x4068d5
push eax
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x190]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov byte [ebp - 0x191], 0
jmp 0x406bdb
cmp ecx, 0x10
jb 0x406818
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40680e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40680e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push 7
push str.mkdir__
push ecx
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1c8]
call fcn.00408090
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1b4]
mov eax, edx
mov ecx, dword [ebp - 0x1b8]
sub eax, ecx
cmp eax, 1
jb 0x40697f
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0x1c8]
jmp 0x4069a0
push 1
push 0x4125ec
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x198]
push 1
call fcn.00403480
mov dword [ebp - 0x1a0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1b0], xmm0
mov dword [ebp - 0x19c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1b0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x1b0]
cmp dword [ebp - 0x19c], 0x10
cmovae eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x19c]
add esp, 4
cmp ecx, 0x10
jb 0x406a3a
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406a30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a91
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xf
mov byte [ebp - 0x1b0], 0
cmp ecx, 0x10
jb 0x40686c
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406862
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406862
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xb0
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0xd8]
push 0x20
push eax
call fcn.00401ac0
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0x180]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xcc], 0
sete byte [ebp - 0x191]
call fcn.00402c30
test eax, eax
jne 0x406b14
push eax
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x190]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xd4]
call fcn.00402c30
test eax, eax
jne 0x406b3b
push eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0xd4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x406ba6
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x98]
cmp dword [eax], ecx
jne 0x406ba6
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xb8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa8]
mov dword [eax], edx
cmp byte [ebp - 0x8c], 0
je 0x406bba
lea ecx, [ebp - 0xd4]
call fcn.00402c30
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x190]
call fcn.00401940
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x406c1a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406c10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c94
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x406c5c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406c52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406c94
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x406ca4
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406c9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406c9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f66d
add esp, 8
mov al, byte [ebp - 0x191]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f11c
mov esp, ebp
pop ebp
ret
call fcn.00401420
int3