Function at 0x49a8f0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709549
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov ebx, 0x780fa8
test ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x80], eax
cmovne ebx, ecx
xor esi, esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x49a97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x49a9c4
cmp eax, 3
je 0x49a9c4
test eax, eax
je 0x49a978
push esi
push 0x5d
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push ecx
mov edx, eax
call fcn.00465440
add esp, 0x10
mov eax, dword [ebp - 0x6c]
test al, 1
je 0x49a9aa
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x49a9a7
push eax
push 0x65
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.00465440
add esp, 0x10
mov eax, dword [ebp - 0x6c]
test eax, 0x400
je 0x49a9d3
mov ecx, ebx
call fcn.00481a70
mov dword [ebp - 4], 0
jmp 0x49af92
lea ecx, [ebp - 0x64]
call fcn.00448f20
xor al, al
jmp 0x49b011
test al, 0x10
jne 0x49a9ec
mov dl, 1
mov ecx, ebx
call fcn.00481750
mov dword [ebp - 4], 0
jmp 0x49af92
push 0
push 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0049bb10
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x60], 0
push 0x274
mov byte [ebp - 4], 3
call fcn.006d0b01
add esp, 4
mov ecx, eax
call fcn.0049a490
push eax
lea ecx, [ebp - 0x60]
call fcn.0049ba10
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49aa33
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x60]
push ebx
lea ecx, [ecx + 0xc]
call fcn.00449180
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
call fcn.0049b970
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x78]
call fcn.0049b920
lea ecx, [ebp - 0x70]
call fcn.0049ba80
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0049ba80
nop
cmp dword [ebp - 0x74], 0
je 0x49aef7
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [ebp - 0x68], edi
test edi, edi
je 0x49aaaa
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov byte [ebp - 4], 5
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x49abe2
push 1
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x790b40
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00449180
mov byte [ebp - 4], 7
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x80]
xor eax, eax
mov word [ebp - 0x5c], ax
or esi, 1
push ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
push eax
lea ecx, [edi + 0xc]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x60], esi
call fcn.00481e60
add esp, 8
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ebx, [edi + 0x24]
cmovae eax, dword [ebp - 0x5c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 8], eax
and esi, 0xfffffffe
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x80], esi
cmp edx, 8
jb 0x49ab6e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49ab64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b02d
push edx
push ecx
call fcn.006d0b31
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x49abc0
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49abb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b032
push edx
push ecx
call fcn.006d0b31
add esp, 8
cmp dword [edi + 8], 0xffffffff
jne 0x49ad08
push 0
push 0x80
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49acfe
lea esi, [edi + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, esi
test eax, eax
jne 0x49ad08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x49aced
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00449040
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x78]
dec dword [ebp - 0x74]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 8]
call fcn.0049ba80
push 0xc
push esi
call fcn.006d0b31
mov eax, dword [edi]
add esp, 8
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
xor edi, edi
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x68], edi
cmovae ecx, dword [ebp - 0x2c]
call fcn.00481a70
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x49aca5
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49ac9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b037
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov byte [ebp - 4], 9
test edi, edi
je 0x49aeee
mov eax, dword [edi]
mov esi, dword [eax + 4]
cmp esi, method.KLSTD::KLBaseImpl_class_KLSTD::KLBase__1_.virtual_4
jne 0x49b046
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
dec eax
jne 0x49aeee
mov eax, dword [edi]
push 1
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov byte [ebp - 4], 2
jmp 0x49aa80
test eax, eax
je 0x49ad08
push 0
push 0x91
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push ecx
mov edx, eax
call fcn.00465440
add esp, 0x10
lea esi, [edi + 0x50]
push 0x790004
push esi
call fcn.006e5edd
add esp, 8
test eax, eax
je 0x49aca5
push 0x790b44
push esi
call fcn.006e5edd
add esp, 8
test eax, eax
je 0x49aca5
mov ecx, esi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ad50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00449180
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
lea edx, [edi + 0xc]
lea ecx, [ebp - 0x44]
call fcn.0044a730
add esp, 4
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x49adbd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49adb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b03c
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov ecx, dword [ebx]
test cl, 1
je 0x49adfa
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x49adfa
push eax
push 0xa6
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.00465440
add esp, 0x10
test dword [ebp - 0x6c], 0x400
je 0x49ae18
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.00481a70
jmp 0x49ae94
test byte [ebx], 0x10
je 0x49ae82
mov dword [ebp - 0x60], 0
push 0x274
mov byte [ebp - 4], 0xd
call fcn.006d0b01
add esp, 4
mov ecx, eax
call fcn.0049a490
push eax
lea ecx, [ebp - 0x60]
call fcn.0049ba10
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ecx + 0xc]
call fcn.00454500
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
call fcn.0049b970
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x78]
call fcn.0049b920
lea ecx, [ebp - 0x70]
call fcn.0049ba80
lea ecx, [ebp - 0x60]
call fcn.0049ba80
jmp 0x49ae94
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov dl, 1
cmovae ecx, dword [ebp - 0x44]
call fcn.00481750
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x49aed2
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49aec8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b041
push edx
push ecx
call fcn.006d0b31
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x68]
mov word [ebp - 0x44], ax
jmp 0x49aa76
mov byte [ebp - 4], 2
jmp 0x49aa80
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp edi, ebx
je 0x49af20
mov esi, dword [edi]
lea ecx, [edi + 8]
call fcn.0049ba80
push 0xc
push edi
call fcn.006d0b31
add esp, 8
mov edi, esi
cmp esi, ebx
jne 0x49af05
push 0xc
push ebx
call fcn.006d0b31
mov esi, dword [ebp - 0x64]
add esp, 8
mov dword [ebp - 4], 0
jmp 0x49af92
mov edi, dword [ebp - 0x7c]
test esi, esi
jne 0x49b057
jmp 0x49b007
lea ecx, [ebp - 0x64]
call fcn.00448f20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
jmp 0x49aeee
push str.KLSTD::DeletePath
push 0xb9
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push 0x780fa8
mov edx, esi
mov ecx, 5
call fcn.00477010
push str.KLSTD::DeletePath
push 0xba
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdiodel_path.cpp
push 0x780fa8
mov edx, esi
mov ecx, 3
call fcn.00477010
add esp, 0x1c
mov edx, 7
mov ecx, esi
push 0
push edi
call fcn.0047ea50
mov eax, dword [esi]
add esp, 0xc
mov edi, dword [eax]
mov ecx, edi
call dword [0x70d440]
mov ecx, esi
call edi
push 0x7bae10
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], esi
push eax
call fcn.006d4ced
int3