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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d251
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10052120]
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 ebx, ecx
mov dword [ebp - 0x74], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 1
push eax
call fcn.10004830
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
cmp edi, eax
je 0x10004a38
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [edi + eax*8]
cmp esi, eax
je 0x10004a38
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002fb0
cmp dword [esi + 0x10], 0
je 0x10004c0f
xor eax, eax
mov dword [ebp - 0x30], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.10002fb0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x10004b86
push 0xb
push str.Application
lea ecx, [ebp - 0x44]
call fcn.10003f80
push 1
push 0x10047da4
lea ecx, [ebp - 0x44]
call fcn.10003f80
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x44]
call fcn.10003eb0
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x10004ac2
push esi
mov ecx, eax
call fcn.10004f50
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x30], eax
mov dword [esi + 0x14], ecx
push ecx
mov edx, esi
mov byte [ebp - 0x5d], 1
lea ecx, [ebp - 0x2c]
call fcn.10005240
add esp, 4
push 0x10
push str.2345ImageApp.dll
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10003f80
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10004b04
xor bl, bl
jmp 0x10004b68
test al, 0x10
je 0x10004b0c
xor bl, bl
jmp 0x10004b68
push ecx
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.10005240
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.10004c80
cmp dword [ebp - 0x48], 8
jb 0x10004b34
push dword [ebp - 0x5c]
call fcn.1002dcc0
add esp, 4
push 0x10
push str.2345ImageApp.dll
lea ecx, [ebp - 0x2c]
call fcn.10003f80
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10004b5a
xor bl, bl
jmp 0x10004b68
movzx ebx, byte [ebp - 0x5d]
test al, 0x10
mov eax, 0
cmovne ebx, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x10004b7d
push dword [ebp - 0x2c]
call fcn.1002dcc0
add esp, 4
test bl, bl
jne 0x10004bfe
mov ebx, dword [ebp - 0x74]
jmp 0x10004b9e
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10004b97
mov eax, dword [esi]
jmp 0x10004b99
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10004baf
mov eax, dword [esi]
jmp 0x10004bb1
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.10004780
cmp dword [ebp - 0x1c], 0
je 0x10004bed
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
jb 0x10004bfe
push dword [ebp - 0x2c]
call fcn.1002dcc0
add esp, 4
cmp dword [ebp - 0x30], 8
jb 0x10004c0f
push dword [ebp - 0x44]
call fcn.1002dcc0
add esp, 4
test edi, edi
je 0x10004c2a
push dword [ebp - 0x70]
mov edx, dword [ebp - 0x68]
push ecx
mov ecx, edi
call fcn.10005340
push edi
call fcn.1002dcc0
add esp, 0xc
mov eax, esi
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.1002d43e
mov esp, ebp
pop ebp
ret 4