Function at 0x5c3bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69172a
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 0x2d0], 0
cmp dword [eax + 0x10], 0
jne 0x5c3c00
mov al, 1
jmp 0x5c436b
push eax
lea ecx, [ebp - 0x28]
call fcn.005a7d30
mov edi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test edi, edi
je 0x5c3c4a
nop
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
jne 0x5c3c45
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
mov byte [eax + ecx], 0x5c
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
inc ecx
cmp ecx, edi
jb 0x5c3c20
xor eax, eax
xor edi, edi
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], edi
push edi
push edi
cmp edx, 0x10
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5c3c9b
mov edi, eax
add eax, eax
push eax
push 0
mov dword [ebp - 0x2d8], edi
call fcn.0066a672
mov esi, eax
add esp, 8
mov dword [ebp - 0x2dc], esi
jmp 0x5c3c9d
xor esi, esi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c4318
test al, 0x10
je 0x5c4318
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov byte [ebp - 0x2c1], 1
cmp byte [eax + ecx - 1], 0x5c
je 0x5c3cfd
push 1
push 0x716504
lea ecx, [ebp - 0x28]
call fcn.004485a0
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c34c0
mov eax, dword [ebp - 0x2d8]
inc eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], eax
add eax, eax
push eax
push dword [ebp - 0x2dc]
call fcn.0066a672
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2dc], esi
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x5c3d42
mov eax, dword [0x734310]
mov dword [edi], eax
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
mov edi, eax
cmp eax, 0xffffffff
je 0x5c40d5
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x6a4578
lea eax, [ebp - 0x294]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5c3db6
test dx, dx
je 0x5c3db2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5c3db6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5c3d90
xor eax, eax
jmp 0x5c3dbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5c40bf
mov ecx, 0x6a457c
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5c3df6
test dx, dx
je 0x5c3df2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5c3df6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5c3dd0
xor eax, eax
jmp 0x5c3dfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5c40bf
mov esi, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
xor edi, edi
mov dword [ebp - 0x2e8], edi
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5c3fa0
mov dword [ebp - 0x2e0], edi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005c3530
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005a5ba0
or dword [ebp - 0x2d0], 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x5c3ec3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c3eb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov ecx, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
mov esi, dword [esi]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov ecx, dword [ecx + 4]
sub ecx, esi
mov byte [ebp - 0x40], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x5c4386
mov eax, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp - 0x44]
add eax, esi
mov esi, dword [ebp - 0x58]
cmp edi, 0x10
mov edx, eax
cmovae ecx, esi
cmp dword [eax + 0x14], 0x10
jb 0x5c3f1c
mov edx, dword [eax]
push dword [ebp - 0x48]
push ecx
push dword [eax + 0x10]
push edx
call fcn.005ad650
add esp, 0x10
mov byte [ebp - 4], 1
test al, al
jne 0x5c40f0
cmp edi, 0x10
jb 0x5c3f68
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x5c3f5e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push ecx
push esi
call fcn.00663ac7
add esp, 8
mov esi, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x2e8]
add dword [ebp - 0x2e0], 0x18
inc edi
mov dword [ebp - 0x2e8], edi
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5c3e33
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x70]
push eax
je 0x5c4118
call fcn.005c3530
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.005a5ba0
or dword [ebp - 0x2d0], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.005c3bb0
and byte [ebp - 0x2c1], al
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x5c4069
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c405f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5c40b3
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c40a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov esi, dword [ebp - 0x2cc]
mov edi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5c3d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5c4298
mov byte [ebp - 0x2c1], 0
jmp 0x5c4328
cmp edi, 0x10
jb 0x5c40b3
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x5c4114
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edi
push esi
jmp 0x5c40ab
call fcn.005c3530
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.005a5ba0
or dword [ebp - 0x2d0], 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x5c41b2
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c41a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x2d4]
cmp eax, ecx
jbe 0x5c4213
mov ecx, eax
add eax, eax
push eax
mov eax, dword [ebp - 0x2cc]
push eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2d8], ecx
call fcn.0066a672
mov ecx, dword [ebp - 0x2d4]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2dc], esi
jmp 0x5c4219
mov esi, dword [ebp - 0x2cc]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
test byte [ebp - 0x2c0], 1
je 0x5c4247
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x2c1], al
mov edx, dword [ebp - 0x2c]
setne byte [ebp - 0x2c1]
cmp edx, 0x10
jb 0x5c40b9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c4289
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
jmp 0x5c40b9
cmp edi, 0xffffffff
je 0x5c42a4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2c1], 0
je 0x5c40e4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x2d4]
cmp eax, ecx
jbe 0x5c42f6
mov dword [ebp - 0x2d4], eax
add eax, eax
push eax
push esi
call fcn.0066a672
mov ecx, dword [ebp - 0x2d4]
add esp, 8
mov esi, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x5c431f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2c1]
test esi, esi
je 0x5c4335
push esi
call fcn.0066a657
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c4365
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c435b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c438b
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov al, byte [ebp - 0x2c1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
call fcn.005af050
call fcn.0066a5fb
int3