Function at 0x30005bc2
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x30012970]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
push 0x13d
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
mov esi, 0x30012e18
push esi
call sub.MSVCRT.dll__wfullpath
add esp, 0xc
test eax, eax
jne 0x30005c1a
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call fcn.30002c36
cmp dword [ebp + 0xc], 0
je 0x30005c28
xor eax, eax
inc eax
jmp 0x30005f18
push 0x3b
push 0x3b
push esi
call fcn.3000670b
add esp, 0xc
test eax, eax
je 0x30005c54
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0x184
jmp 0x30005f0d
push 0x5d
push 0x5b
push esi
call fcn.3000670b
add esp, 0xc
test eax, eax
je 0x30005c80
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0x189
jmp 0x30005f0d
push 0x2c
push 0x2c
push esi
call fcn.3000670b
add esp, 0xc
test eax, eax
je 0x30005cac
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0x188
jmp 0x30005f0d
cmp word [0x30012e18], 0x3a
je 0x30005ef7
push 6
push esi
call fcn.30007b45
cmp eax, 2
pop ecx
pop ecx
jbe 0x30005ce2
push 0x3a
push 0x3a
push 0x30012e1c
call fcn.3000670b
add esp, 0xc
test eax, eax
jne 0x30005ef7
push esi
call fcn.300069e0
cmp word [eax], 0
pop ecx
jne 0x30005d0d
mov edx, eax
sub edx, esi
sar edx, 1
mov ecx, edi
sub ecx, edx
cmp ecx, 0x7fffffff
ja 0x30005d0d
push 0x300017d0
push ecx
push eax
call fcn.30002c36
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call ebx
push esi
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.30002c36
lea eax, [ebp - 0x20c]
push eax
call fcn.300069a6
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.30006890
test eax, eax
pop ecx
pop ecx
jne 0x30005d62
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0xee
jmp 0x30005d8e
push esi
call fcn.3000684a
test eax, eax
pop ecx
je 0x30005db8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x30005db8
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0xed
push dword [ebp + 8]
call fcn.30006e80
add esp, 0x10
push 0x13d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp + 0xc]
call ebx
jmp 0x30005f16
push dword [ebp + 0xc]
call ebx
push esi
call fcn.3000684a
test eax, eax
pop ecx
je 0x30005df2
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x24
add eax, 0x351
push eax
push 0x32a
push dword [ebp + 8]
call fcn.30006e80
add esp, 0x10
cmp eax, 7
je 0x30005e9a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.300069a6
mov ebx, eax
mov ax, word [ebx]
mov word [ebp + 0xc], ax
xor eax, eax
cmp word [0x30012e18], ax
pop ecx
mov word [ebx], ax
mov dword [0x300129d8], esi
jne 0x30005e6e
push edi
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.300069a6
and word [eax], 0
mov ax, word [ebp + 0xc]
pop ecx
push ebx
mov word [ebx], ax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.3000405a
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.30002c36
jmp 0x30005eb8
push esi
call fcn.30006c8d
test eax, eax
pop ecx
jne 0x30005eb1
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0x32e
push dword [ebp + 8]
call fcn.30006e80
add esp, 0x10
push 0x13d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x30005f16
mov ax, word [ebp + 0xc]
mov word [ebx], ax
xor edi, edi
inc edi
push edi
push 0
push 0x300017c8
push esi
call fcn.300064f9
push edi
push edi
push edi
push dword [ebp + 8]
push esi
call fcn.3000f6c3
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x30005ef3
push 0x13d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, esi
jmp 0x30005f18
mov eax, dword [0x30013430]
neg eax
sbb eax, eax
push 0x30
add eax, 0x351
push eax
push 0x1ea
push ebx
call fcn.30006e80
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.300101bf
leave
ret