Function at 0x416b19
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bcb52
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4e8070]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0x4f0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 8
pop esi
cmp dword [ebx + 0x588], esi
jb 0x416b6f
mov eax, dword [ebx + 0x574]
jmp 0x416b75
lea eax, [ebx + 0x574]
push 0x4c3b44
push eax
call fcn.0042f966
test eax, eax
je 0x416d54
cmp dword [ebx + 0x588], esi
jb 0x416b98
mov edi, dword [ebx + 0x574]
jmp 0x416b9e
lea edi, [ebx + 0x574]
call fcn.0042d1aa
cmp dword [ebx + 0x588], esi
jb 0x416bb3
mov eax, dword [ebx + 0x574]
jmp 0x416bb9
lea eax, [ebx + 0x574]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebx + 0x58c], esi
jne 0x416c33
xor eax, eax
push 0x206
mov word [esp + 0xd8], ax
lea eax, [esp + 0xda]
push edi
push eax
call fcn.00499dd0
add esp, 0xc
cmp dword [ebx + 0x588], esi
jb 0x416bfa
mov eax, dword [ebx + 0x574]
jmp 0x416c00
lea eax, [ebx + 0x574]
push 0x104
push eax
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edi, [esp + 0xd4]
mov esi, edi
call fcn.0042d2b4
push 8
pop esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
lea eax, [esp + 0x80]
push eax
push ebx
call fcn.00416495
and dword [esp + 0x4f8], 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0041b207
pop ecx
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x4fc], 2
call fcn.0041027a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416ca0
mov esi, eax
lea edi, [esp + 0x9c]
call fcn.00419a46
push dword [esp + 0x9c]
call fcn.00497e2f
pop ecx
mov eax, esi
jmp 0x416fec
cmp dword [ebx + 0x588], esi
jb 0x416cb0
mov eax, dword [ebx + 0x574]
jmp 0x416cb6
lea eax, [ebx + 0x574]
push eax
lea ecx, [esp + 0xa0]
call fcn.0044ff99
pop ecx
mov edi, eax
call fcn.00416a1e
test edi, edi
je 0x416d36
cmp edi, 1
jne 0x416ceb
push 0x10
push 0x4c13cc
push 0x4c3bc8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x416d2e
push edi
lea edi, [esp + 0xbc]
call fcn.0044fea7
pop ecx
cmp dword [eax + 0x18], esi
jb 0x416d03
mov eax, dword [eax + 4]
jmp 0x416d06
add eax, 4
mov esi, dword [ebx + 4]
push eax
push 0x4c3bf8
push 0x10
mov edi, 0x4c13cc
call fcn.0042dafa
add esp, 0xc
push 0
push 1
lea esi, [esp + 0xc0]
call fcn.00403ead
push 0xa
pop esi
jmp 0x416c80
lea edi, [esp + 0x9c]
call fcn.00419a46
push dword [esp + 0x9c]
call fcn.00497e2f
pop ecx
jmp 0x416fea
cmp dword [ebx + 0x588], esi
jb 0x416d64
mov esi, dword [ebx + 0x574]
jmp 0x416d6a
lea esi, [ebx + 0x574]
call fcn.0042d2b4
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x588], 8
jb 0x416d89
mov eax, dword [ebx + 0x574]
jmp 0x416d8f
lea eax, [ebx + 0x574]
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.00416495
mov dword [esp + 0x4f8], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x416dc9
mov esi, eax
or dword [esp + 0x4f8], 0xffffffff
lea eax, [esp + 0x40]
push eax
call fcn.0041027a
jmp 0x416c99
push esi
push esi
lea eax, [esp + 0x2c]
call fcn.004377e8
mov byte [esp + 0x4f8], 6
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.0043a0e2
test al, al
jne 0x416ef6
call fcn.00431223
cmp dword [eax + 0x18], 8
jb 0x416e23
mov eax, dword [eax + 4]
jmp 0x416e26
add eax, 4
push eax
lea ecx, [esp + 0xa0]
call fcn.004069ac
pop ecx
mov byte [esp + 0x4f8], 7
cmp dword [esp + 0xb0], 0
je 0x416ecd
sub esp, 0x18
lea edx, [esp + 0xb4]
mov esi, esp
mov dword [esp + 0x54], esp
call fcn.00436959
lea esi, [esp + 0x2c]
mov byte [esp + 0x510], 8
call fcn.00431223
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00401298
pop ecx
pop ecx
mov byte [esp + 0x510], 9
lea ecx, [esp + 0x3c]
push ecx
call fcn.00437afe
mov edi, eax
mov byte [esp + 0x510], 0xa
call fcn.00436bb1
push 0
push 1
lea ecx, [esp + 0x68]
call fcn.00403db0
push 0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x500], 6
call fcn.00403db0
call fcn.00405bbf
jmp 0x416dee
push 0
push 1
lea ecx, [esp + 0xa4]
call fcn.00403db0
lea esi, [esp + 0x24]
mov byte [esp + 0x4f8], 3
call fcn.00436b2e
push 0xe
pop esi
jmp 0x416db2
xor eax, eax
push 0x206
mov word [esp + 0x2e0], ax
xor esi, esi
lea eax, [esp + 0x2e2]
push esi
push eax
call fcn.00499dd0
add esp, 0xc
cmp dword [ebx + 0x588], 8
jb 0x416f29
mov ebx, dword [ebx + 0x574]
jmp 0x416f2f
add ebx, 0x574
push ebx
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4c2a44
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x64]
call fcn.00437f83
push eax
lea eax, [esp + 0xbc]
push eax
mov byte [esp + 0x500], 0xb
call fcn.0044e115
pop ecx
pop ecx
push esi
push 1
lea ecx, [esp + 0x68]
call fcn.00403db0
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x416f9b
lea eax, [esp + 0xbc]
push dword [esp + 0xcc]
push eax
lea eax, [esp + 0x2e4]
push eax
call fcn.0042da27
push esi
lea ecx, [esp + 0xbc]
push 1
test eax, eax
je 0x416ed8
call fcn.00403db0
lea esi, [esp + 0x24]
mov byte [esp + 0x4f8], 3
call fcn.00436b2e
or dword [esp + 0x4f8], 0xffffffff
lea eax, [esp + 0x40]
push eax
call fcn.0041027a
xor eax, eax
mov ecx, dword [esp + 0x4f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.0049795f
mov esp, ebp
pop ebp
ret 4