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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dfae
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x42600c]
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.004045d0
lea ecx, [ebp - 0x28]
call fcn.004083d0
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1b0]
call fcn.004045d0
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 0x408800
cmp ecx, 0x10
jb 0x4087e8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4087de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e3
push ecx
push edx
call fcn.0041c982
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, closesocket
sub eax, ecx
cmp eax, 7
jb 0x408bfe
jmp 0x4088e9
test al, 0x10
je 0x4088b1
cmp ecx, 0x10
jb 0x40883c
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408832
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e3
push ecx
push edx
call fcn.0041c982
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.00404340
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xd4], 0
je 0x408a67
lea ecx, [ebp - 0xd0]
call fcn.004048a0
test eax, eax
jne 0x4088a5
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 0x408b16
cmp ecx, 0x10
jb 0x4087e8
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4087de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4087de
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 0x420670
push ecx
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1c8]
call fcn.0040a6a0
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 0x40894f
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 0x408970
push 1
push 0x42066c
mov byte [ebp - 0x198], 0
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x198]
push 1
call fcn.004053b0
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 0x408a0a
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a61
push ecx
push edx
call fcn.0041c982
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 0x40883c
mov edx, dword [ebp - 0x1c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408832
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408832
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.00403730
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.004048a0
test eax, eax
jne 0x408ae4
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.004048a0
test eax, eax
jne 0x408b0b
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.00403670
lea ecx, [ebp - 0xe0]
call fcn.00402fe0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x408b55
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bcf
push ecx
push edx
call fcn.0041c982
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 0x408b97
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bcf
push ecx
push edx
call fcn.0041c982
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 0x408bdf
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408bd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408bd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c982
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.0041c42c
mov esp, ebp
pop ebp
ret
call fcn.00401460
int3