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

Disassembly:
push 0xffffffffffffffff
push 0x412219
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x41b230]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41b230]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x74]
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [esp + 0x28], esi
mov word [esi], ax
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x70], 1
call fcn.004029b0
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp ebp, ebx
je 0x402c0d
mov ecx, ebx
sub ecx, ebp
mov eax, 0x2aaaaaab
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, [eax*8]
add eax, ebp
cmp esi, eax
je 0x402c0d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401c40
cmp dword [esi + 0x10], 0
je 0x402e6d
lea edx, [esp + 0x2c]
mov ecx, esi
xor bl, bl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004022a0
test al, al
je 0x402def
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jl 0x402def
jg 0x402c8c
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jl 0x402def
jg 0x402c8c
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x402def
jg 0x402c8c
mov eax, dword [edi + 0x24]
cmp dword [esp + 0x38], eax
jl 0x402def
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00401c40
mov byte [esp + 0x6c], 2
cmp dword [esp + 0x3c], 0
je 0x402d02
push str.Application
lea ecx, [esp + 0x30]
call fcn.00403540
push 0x418c00
lea ecx, [esp + 0x30]
call fcn.00403540
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x38]
call fcn.00403d50
push 0x418c00
lea ecx, [esp + 0x30]
call fcn.00403540
push esi
lea ecx, [esp + 0x30]
call fcn.004035c0
mov bl, 1
jmp 0x402d1a
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402d13
mov eax, dword [esi]
jmp 0x402d15
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x40], 8
jb 0x402d32
push dword [esp + 0x2c]
call fcn.0040978e
add esp, 4
test bl, bl
je 0x402def
push str.2345ImageApp.dll
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004040f0
add esp, 0xc
mov byte [esp + 0x6c], 3
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402d70
xor bl, bl
jmp 0x402dd3
test al, 0x10
je 0x402d78
xor bl, bl
jmp 0x402dd3
push str.2345EditorApp.dll
lea eax, [esp + 0x48]
push esi
push eax
call fcn.004040f0
add esp, 0xc
lea ecx, [esp + 0x2c]
push eax
call fcn.004017d0
cmp dword [esp + 0x58], 8
jb 0x402da8
push dword [esp + 0x44]
call fcn.0040978e
add esp, 4
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402dc6
xor bl, bl
jmp 0x402dd3
test al, 0x10
movzx ebx, bl
mov eax, 0
cmovne ebx, eax
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x40], 8
jb 0x402deb
push dword [esp + 0x2c]
call fcn.0040978e
add esp, 4
test bl, bl
jne 0x402e69
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x402e00
mov eax, dword [esi]
jmp 0x402e02
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00402900
mov byte [esp + 0x6c], 4
cmp dword [esp + 0x3c], 0
je 0x402e56
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402e56
mov ecx, edi
call fcn.00402eb0
cmp dword [esp + 0x40], 8
jb 0x402e69
push dword [esp + 0x2c]
call fcn.0040978e
add esp, 4
mov ebx, dword [esp + 0x1c]
test ebp, ebp
je 0x402e85
push ebx
push ebp
lea ecx, [esp + 0x20]
call fcn.00403a70
push ebp
call fcn.0040978e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00408f2b
add esp, 0x5c
ret 4