Function at 0x40c1b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55585b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ecx + 0x14]
push eax
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.0040e810
lea edx, [esi + 0xf0]
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xec]
push edx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a23f0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00403d90
xor eax, eax
mov dword [ebp - 0x48], 0
push eax
push 0x584430
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00403df0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00411870
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00403d90
push 0xc
push str.CURRENT_FILE
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403f90
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004ad250
push 1
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.00410d00
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c2d3
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c631
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x40c31d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c636
push edx
push ecx
call fcn.0051ec14
add esp, 8
push 0xe
push str.status_DelFile
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403f90
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004b4180
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00411870
lea ecx, [ebp - 0x58]
call fcn.00403d90
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40c399
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c38f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c63b
push edx
push ecx
call fcn.0051ec14
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c3b7
mov bl, 1
jmp 0x40c60a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c5f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push str.CURRENT_FILE
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403f90
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call fcn.004ad250
push 1
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.00410d00
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c45b
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c451
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c640
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x40c4a5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c49b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c645
push edx
push ecx
call fcn.0051ec14
add esp, 8
push 8
push str.ERRORNUM
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00403f90
mov edx, ebx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x13]
call fcn.00404aa0
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp eax, ecx
je 0x40c4f9
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00403f90
push 1
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00410d00
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x40c546
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c53c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c64a
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c57e
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c64f
push edx
push ecx
call fcn.0051ec14
add esp, 8
push 0x12
push str.error_UndeployFile
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00403f90
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.004b4180
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00411730
lea ecx, [ebp - 0x70]
call fcn.00403d90
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40c5f2
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c5e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c654
push edx
push ecx
call fcn.0051ec14
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete bl
lea ecx, [ebp - 0x40]
call fcn.00403d90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret 4
call fcn.00528129
call fcn.00528129
call fcn.00528129
call fcn.00528129
call fcn.00528129
call fcn.00528129
call fcn.00528129
call fcn.00528129
int3