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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c02e
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x42400c]
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.00404570
lea ecx, [ebp - 0x28]
call fcn.004081f0
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00404570
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 0x408620
cmp ecx, 0x10
jb 0x408608
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4085fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408703
push ecx
push edx
call fcn.0041aa32
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, closesocket
sub eax, ecx
cmp eax, 7
jb 0x408a1e
jmp 0x408709
test al, 0x10
je 0x4086d1
cmp ecx, 0x10
jb 0x40865c
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408652
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408703
push ecx
push edx
call fcn.0041aa32
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.004042e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xd4], 0
je 0x408887
lea ecx, [ebp - 0xd0]
call fcn.00404840
test eax, eax
jne 0x4086c5
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 0x408936
cmp ecx, 0x10
jb 0x408608
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4085fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4085fe
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 0x41e670
push ecx
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1c8]
call fcn.0040a4d0
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 0x40876f
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 0x408790
push 1
push 0x41e66c
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x198]
push 1
call fcn.00405350
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 0x40882a
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408820
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408881
push ecx
push edx
call fcn.0041aa32
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 0x40865c
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408652
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408652
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.004036d0
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.00404840
test eax, eax
jne 0x408904
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.00404840
test eax, eax
jne 0x40892b
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.00403610
lea ecx, [ebp - 0xe0]
call fcn.00402f80
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x408975
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40896b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089ef
push ecx
push edx
call fcn.0041aa32
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 0x4089b7
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4089ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089ef
push ecx
push edx
call fcn.0041aa32
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 0x4089ff
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4089f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4089f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041aa32
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.0041a4dc
mov esp, ebp
pop ebp
ret
call fcn.00401400
int3