Function at 0x412aef
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x384
lea eax, [esp + 0x178]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xf8]
call fcn.004020df
lea ecx, [esp + 0xe0]
call fcn.004020df
lea ecx, [esp + 0xc8]
call fcn.004020df
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
call fcn.0041ba09
mov ecx, eax
call fcn.00401fab
push eax
mov dl, 0x30
lea ecx, [esp + 0xb4]
call fcn.0040da23
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00401fd8
lea ecx, [esp + 0x1c]
call fcn.0041ba09
mov ecx, eax
call fcn.00401fab
push eax
mov dl, 0x30
lea ecx, [esp + 0x9c]
call fcn.0040da23
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00401fd8
lea ecx, [esp + 0x1c]
call fcn.0041ba09
mov ecx, eax
call fcn.00401fab
push eax
mov dl, 0x30
lea ecx, [esp + 0x84]
call fcn.0040da23
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00401fd8
xor ebx, ebx
lea ecx, [esp + 0x3c8]
call fcn.00401fab
mov esi, eax
lea ecx, [esp + 0x38]
push 0x465e84
lea eax, [esp + 0xb4]
push eax
push str.__stext__
call fcn.0040417e
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x74]
call fcn.004042fc
pop ecx
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0040431d
pop ecx
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.00403014
pop ecx
mov ecx, eax
call fcn.00401f04
mov edx, esi
mov ecx, eax
call fcn.004185a3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16], al
call fcn.00401f09
lea ecx, [esp + 0x50]
call fcn.00401f09
lea ecx, [esp + 0x68]
call fcn.00401f09
lea ecx, [esp + 0x38]
call fcn.00401f09
cmp byte [esp + 0x16], 0
jne 0x412c66
push 0xa
call edi
inc ebx
cmp ebx, 0xa
jl 0x412bc6
xor ebx, ebx
lea ecx, [esp + 0x3f8]
call fcn.00401fab
mov esi, eax
lea ecx, [esp + 0x1c]
push 0x465e84
lea eax, [esp + 0x9c]
push eax
push str.__stext__
call fcn.0040417e
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x5c]
call fcn.004042fc
pop ecx
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.0040431d
pop ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00403014
pop ecx
mov ecx, eax
call fcn.00401f04
mov edx, esi
mov ecx, eax
call fcn.004185a3
lea ecx, [esp + 0x38]
mov byte [esp + 0x18], al
call fcn.00401f09
lea ecx, [esp + 0x68]
call fcn.00401f09
lea ecx, [esp + 0x50]
call fcn.00401f09
lea ecx, [esp + 0x1c]
call fcn.00401f09
cmp byte [esp + 0x18], 0
jne 0x412d08
push 0xa
call edi
inc ebx
cmp ebx, 0xa
jl 0x412c68
xor ebx, ebx
lea ecx, [esp + 0x3e0]
call fcn.00401fab
mov esi, eax
lea ecx, [esp + 0x1c]
push 0x465e84
lea eax, [esp + 0x84]
push eax
push str.__stext__
call fcn.0040417e
push eax
lea edx, [esp + 0x194]
lea ecx, [esp + 0x5c]
call fcn.004042fc
pop ecx
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.0040431d
pop ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00403014
pop ecx
mov ecx, eax
call fcn.00401f04
mov edx, esi
mov ecx, eax
call fcn.004185a3
lea ecx, [esp + 0x38]
mov byte [esp + 0x17], al
call fcn.00401f09
lea ecx, [esp + 0x68]
call fcn.00401f09
lea ecx, [esp + 0x50]
call fcn.00401f09
lea ecx, [esp + 0x1c]
call fcn.00401f09
cmp byte [esp + 0x17], 0
jne 0x412daa
push 0xa
call edi
inc ebx
cmp ebx, 0xa
jl 0x412d0a
xor eax, eax
cmp byte [esp + 0x16], al
sete al
cmp byte [esp + 0x17], 0
lea ecx, [eax + 1]
cmovne ecx, eax
cmp byte [esp + 0x18], 0
lea ebx, [ecx + 1]
cmovne ebx, ecx
xor esi, esi
mov dword [esp + 0x34], ebx
mov bl, byte [esp + 0x1b]
lea ecx, [esp + 0xb0]
call fcn.00401f04
lea edx, [esp + 0xf8]
mov ecx, eax
call fcn.0041c516
test al, al
je 0x412e06
lea ecx, [esp + 0xb0]
mov bl, 1
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x80]
call fcn.00401f04
lea edx, [esp + 0xe0]
mov ecx, eax
call fcn.0041c516
test al, al
je 0x412e3f
mov bh, 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x19], bh
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412e43
mov bh, byte [esp + 0x19]
lea ecx, [esp + 0x98]
call fcn.00401f04
lea edx, [esp + 0xc8]
mov ecx, eax
call fcn.0041c516
test al, al
je 0x412e79
lea ecx, [esp + 0x98]
mov byte [esp + 0x1a], 1
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x412e88
test bh, bh
je 0x412e88
cmp byte [esp + 0x1a], 0
jne 0x412e99
push 0x1f4
call edi
inc esi
cmp esi, 0xa
jl 0x412dd3
lea ecx, [esp + 0xf8]
call fcn.00406b63
mov ebx, dword [esp + 0x34]
test al, al
je 0x412f01
lea ecx, [esp + 0xc8]
call fcn.00406b63
test al, al
je 0x412f01
lea ecx, [esp + 0xe0]
call fcn.00406b63
test al, al
je 0x412f01
push 0x64
call edi
lea ecx, [esp + 0x80]
call fcn.00401f09
lea ecx, [esp + 0x98]
call fcn.00401f09
lea ecx, [esp + 0xb0]
call fcn.00401f09
inc ebp
cmp ebp, 0xa
jl 0x412b3a
jmp 0x412f25
lea ecx, [esp + 0x80]
call fcn.00401f09
lea ecx, [esp + 0x98]
call fcn.00401f09
lea ecx, [esp + 0xb0]
call fcn.00401f09
push 0
push 0x2710
lea ecx, [esp + 0x118]
call fcn.0040b93f
lea ecx, [esp + 0x110]
call fcn.00401f04
sub esp, 0x18
mov esi, eax
lea eax, [esp + 0x428]
mov ecx, esp
push eax
call fcn.004020f6
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00413268
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.00401f09
mov edx, 0x46612c
lea ecx, [esp + 0x398]
call fcn.00405b05
lea edx, [esp + 0x110]
test al, al
je 0x4130e3
lea ecx, [esp + 0x170]
call fcn.0041bdaf
sub esp, 0x18
lea ecx, [esp + 0x170]
mov esi, esp
mov edi, 0x474ef0
mov edx, ebx
push eax
push edi
call fcn.0041bc1f
push eax
push edi
lea eax, [esp + 0xf0]
push eax
push edi
lea eax, [esp + 0x110]
push eax
push edi
lea eax, [esp + 0x130]
push eax
push edi
lea edx, [esp + 0x3f0]
lea ecx, [esp + 0x180]
call fcn.00402f31
pop ecx
mov edx, eax
lea ecx, [esp + 0x164]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0xb8]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0xcc]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0xe0]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x8c]
call fcn.00402ea1
pop ecx
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.00402f10
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00402ea1
pop ecx
push 0x69
mov ecx, 0x475440
call fcn.00404aa1
lea ecx, [esp + 0x38]
call fcn.00401fd8
lea ecx, [esp + 0x68]
call fcn.00401fd8
lea ecx, [esp + 0x50]
call fcn.00401fd8
lea ecx, [esp + 0x1c]
call fcn.00401fd8
lea ecx, [esp + 0xb0]
call fcn.00401fd8
lea ecx, [esp + 0x98]
call fcn.00401fd8
lea ecx, [esp + 0x80]
call fcn.00401fd8
lea ecx, [esp + 0x128]
call fcn.00401fd8
lea ecx, [esp + 0x140]
call fcn.00401fd8
lea ecx, [esp + 0x158]
call fcn.00401fd8
lea ecx, [esp + 0x170]
jmp 0x4131e0
lea ecx, [esp + 0x1c]
call fcn.0041bdaf
sub esp, 0x18
lea edx, [esp + 0x3c8]
mov esi, esp
lea ecx, [esp + 0x68]
mov edi, 0x474ef0
push eax
push edi
lea eax, [esp + 0xe8]
push eax
push edi
lea eax, [esp + 0x108]
push eax
push edi
lea eax, [esp + 0x128]
push eax
push edi
call fcn.00402f31
pop ecx
mov edx, eax
lea ecx, [esp + 0x9c]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x168]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.00402f10
pop ecx
mov edx, eax
lea ecx, [esp + 0x190]
call fcn.00402f10
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00402ea1
pop ecx
push 0x6a
mov ecx, 0x475440
call fcn.00404aa1
lea ecx, [esp + 0x170]
call fcn.00401fd8
lea ecx, [esp + 0x158]
call fcn.00401fd8
lea ecx, [esp + 0x140]
call fcn.00401fd8
lea ecx, [esp + 0x128]
call fcn.00401fd8
lea ecx, [esp + 0x38]
call fcn.00401fd8
lea ecx, [esp + 0x68]
call fcn.00401fd8
lea ecx, [esp + 0x50]
call fcn.00401fd8
lea ecx, [esp + 0x1c]
call fcn.00401fd8
lea ecx, [esp + 0x110]
call fcn.00401f09
lea ecx, [esp + 0xc8]
call fcn.00401fd8
lea ecx, [esp + 0xe0]
call fcn.00401fd8
lea ecx, [esp + 0xf8]
call fcn.00401fd8
lea ecx, [esp + 0x398]
call fcn.00401fd8
lea ecx, [esp + 0x3b0]
call fcn.00401fd8
lea ecx, [esp + 0x3c8]
call fcn.00401fd8
lea ecx, [esp + 0x3e0]
call fcn.00401fd8
lea ecx, [esp + 0x3f8]
call fcn.00401fd8
lea ecx, [esp + 0x410]
call fcn.00401fd8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret