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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x42b00c]
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.00404790
lea ecx, [ebp - 0x28]
call fcn.004089c0
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00404790
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 0x408df0
cmp ecx, 0x10
jb 0x408dd8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408dce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ed3
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, closesocket
sub eax, ecx
cmp eax, 7
jb 0x4091ee
jmp 0x408ed9
test al, 0x10
je 0x408ea1
cmp ecx, 0x10
jb 0x408e2c
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408e22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ed3
push ecx
push edx
call fcn.0041f6f2
add esp, 8
push 0xb8
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0xe0]
push 0x20
push eax
call fcn.00404500
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xd4], 0
je 0x409057
lea ecx, [ebp - 0xd0]
call fcn.00404a60
test eax, eax
jne 0x408e95
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
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 0x409106
cmp ecx, 0x10
jb 0x408dd8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408dce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408dce
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 0x424690
push ecx
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1c8]
call fcn.0040acb0
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 0x408f3f
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 0x408f60
push 1
push 0x42468c
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x198]
push 1
call fcn.00405570
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 0x408ffa
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408ff0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409051
push ecx
push edx
call fcn.0041f6f2
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 0x408e2c
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408e22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408e22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xb0
lea eax, [ebp - 0x190]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x190]
push 0x20
push eax
call fcn.004038f0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x190]
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 - 0x190]
lea ecx, [ebp - 0xd0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x184], 0
sete byte [ebp - 0x191]
call fcn.00404a60
test eax, eax
jne 0x4090d4
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
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 - 0x18c]
call fcn.00404a60
test eax, eax
jne 0x4090fb
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 - 0x190]
call fcn.00403830
lea ecx, [ebp - 0xe0]
call fcn.004031a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x409145
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40913b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091bf
push ecx
push edx
call fcn.0041f6f2
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 0x409187
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40917d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091bf
push ecx
push edx
call fcn.0041f6f2
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 0x4091cf
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4091c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4091c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
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.0041f19c
mov esp, ebp
pop ebp
ret
call fcn.00401620
int3