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

Disassembly:
push 0x54
mov eax, 0x10cd1a6
call fcn.010b534f
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x1039ef0
mov eax, dword [edi]
jmp 0x1039ef2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1039fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push ebx
push 7
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.01033bfc
push 0x1002d18
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.01033c5d
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x60]
push 0x1002cf0
push eax
mov byte [ebp - 4], 1
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.01032f16
push esi
lea eax, [ebp - 0x60]
push 0x1002678
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.01033bb7
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.01032f16
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x3c]
push eax
call fcn.010b4e4c
xor ebx, ebx
test al, 1
je 0x103a074
cmp dword [esi + 0x18], 8
jb 0x1039fc8
mov eax, dword [edi]
jmp 0x1039fca
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
jne 0x103a074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.01033bfc
push 0x1002d18
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 4
call fcn.01033c5d
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x60]
push 0x1002cc8
push eax
mov byte [ebp - 4], 5
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.01032f16
push esi
lea eax, [ebp - 0x60]
push 0x1002678
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.01033bb7
mov byte [ebp - 4], 4
jmp 0x1039f8f
cmp dword [esi + 0x18], 8
jb 0x103a07c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x103a140
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.01033bfc
push 0x1002d18
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 8
call fcn.01033c5d
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x60]
push 0x1002cb0
push eax
mov byte [ebp - 4], 9
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.01032f16
push esi
lea eax, [ebp - 0x60]
push 0x1002678
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.01032f16
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x58]
jmp 0x1039fae
call fcn.010b543b
ret 4