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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ebfe
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x42800c]
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.00404640
lea ecx, [ebp - 0x28]
call fcn.004085d0
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00404640
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 0x408a00
cmp ecx, 0x10
jb 0x4089e8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4089de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ae3
push ecx
push edx
call fcn.0041d5d2
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, closesocket
sub eax, ecx
cmp eax, 7
jb 0x408dfe
jmp 0x408ae9
test al, 0x10
je 0x408ab1
cmp ecx, 0x10
jb 0x408a3c
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ae3
push ecx
push edx
call fcn.0041d5d2
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.004043b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xd4], 0
je 0x408c67
lea ecx, [ebp - 0xd0]
call fcn.00404910
test eax, eax
jne 0x408aa5
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 0x408d16
cmp ecx, 0x10
jb 0x4089e8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4089de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4089de
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 0x421670
push ecx
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1c8]
call fcn.0040a8c0
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 0x408b4f
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 0x408b70
push 1
push 0x42166c
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x198]
push 1
call fcn.00405420
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 0x408c0a
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c61
push ecx
push edx
call fcn.0041d5d2
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 0x408a3c
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408a32
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.004037a0
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.00404910
test eax, eax
jne 0x408ce4
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.00404910
test eax, eax
jne 0x408d0b
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.004036e0
lea ecx, [ebp - 0xe0]
call fcn.00403050
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x408d55
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408d4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408dcf
push ecx
push edx
call fcn.0041d5d2
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 0x408d97
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408d8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408dcf
push ecx
push edx
call fcn.0041d5d2
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 0x408ddf
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408dd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408dd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d5d2
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.0041d07c
mov esp, ebp
pop ebp
ret
call fcn.004014d0
int3