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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5567e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41776b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417b51
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x584430
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403df0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00411870
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
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
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004ad250
push 1
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00410d00
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x41783a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417830
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b6f
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x417887
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41787d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b74
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 dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004b4180
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00411870
lea ecx, [ebp - 0x40]
call fcn.00403d90
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x417909
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4178ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b79
push edx
push ecx
call fcn.0051ec14
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41791b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417b51
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
mov edx, esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.004ad250
push 1
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.00410d00
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4179ae
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4179a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b7e
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x4179fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4179f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b83
push edx
push ecx
call fcn.0051ec14
add esp, 8
push 8
push str.ERRORNUM
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00403f90
mov edx, ebx
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x13]
call fcn.00404aa0
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, ecx
je 0x417a52
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00403f90
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00410d00
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x417a9f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417a95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b88
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x417ada
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417ad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b8d
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 dword [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.004b4180
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00411730
lea ecx, [ebp - 0x70]
call fcn.00403d90
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x417b51
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417b47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b92
push edx
push ecx
call fcn.0051ec14
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret 8
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