Function at 0x1058019
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x1080bec]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20c]
push 0x1436
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x834], esi
mov word [ebp - 0x210], si
rep stosd dword es:[edi], eax
call fcn.0106bcca
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov word [ebp + eax*2 - 0x20a], 0x2a
add esp, 0xc
inc eax
inc eax
mov word [ebp + eax*2 - 0x20c], 0x2e
lea eax, [eax + eax + 2]
mov word [ebp + eax - 0x20c], 0x64
mov word [ebp + eax - 0x20a], 0x66
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x884], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x874], eax
mov edi, 0x104
lea eax, [ebp - 0x82c]
push 0x143e
mov word [ebp - 0x418], si
mov word [ebp - 0x82c], si
mov dword [ebp - 0x890], 0x58
mov dword [ebp - 0x88c], ebx
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x864], 0x1084ea8
mov dword [ebp - 0x86c], eax
mov dword [ebp - 0x868], edi
call fcn.0106bcca
push 0x1435
mov dword [ebp - 0x860], eax
call fcn.0106bcca
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x84c], 0x1060670
mov dword [ebp - 0x85c], 0x80036
jmp 0x105829f
lea eax, [ebp - 0x418]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x105819a
push edi
lea eax, [ebp - 0x418]
push eax
push 0x1084ea8
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x418]
sub ebx, eax
add esp, 0xc
sar ebx, 1
mov word [0x10850b0], si
mov word [ebx*2 + 0x1084eaa], si
push dword [ebp - 0x874]
call dword [sym.imp.msvcrt.dll_wcslen]
add eax, 3
cmp eax, edi
pop ecx
jge 0x105820b
mov ebx, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x2e
push dword [ebp - 0x874]
call ebx
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x838], eax
jne 0x10581ee
push 0x10042c0
push dword [ebp - 0x874]
call dword [sym.imp.msvcrt.dll_wcscat]
push 0x2e
push dword [ebp - 0x874]
call ebx
add esp, 0x10
mov dword [ebp - 0x838], eax
push 0x1435
call fcn.0106bcca
push eax
mov eax, dword [ebp - 0x838]
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x834]
push eax
push 0x64c
push dword [ebp - 0x830]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.01052749
push dword [ebp - 0x834]
push dword [0x10814f0]
call fcn.010527b6
push 0x1005e18
push dword [ebp - 0x874]
call dword [sym.imp.msvcrt.dll__wfopen]
cmp eax, esi
pop ecx
pop ecx
je 0x10582bd
push eax
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [0x10814f0]
pop ecx
push esi
push dword [ebp - 0x874]
push dword [eax]
call fcn.01052b25
test eax, eax
je 0x10582e2
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x874]
push 0x143e
call fcn.0106bcca
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x830]
call fcn.0106c859
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x890]
push eax
push esi
call fcn.010511dd
test eax, eax
jne 0x1058154
jmp 0x10582ec
push dword [ebp - 0x874]
push 0x143e
call fcn.0106bcca
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x830]
call fcn.0106c859
jmp 0x10582ec
mov eax, dword [0x10814f0]
mov eax, dword [eax]
mov dword [eax + 0xc], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 4