Function at 0x406d40
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40a6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00404360
xor ebp, ebp
push ebp
push 0xffffffffffffffff
push ebp
push 0x40e008
mov dword [esp + 0x238], ebp
mov dword [esp + 0x2c], ebp
call fcn.00404ed0
push 1
push 1
push ebp
push 0x40e508
call fcn.00405ab0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x20
push 0x3e8
call ebx
push 1
call fcn.004063c0
add esp, 4
lea eax, [esp + 0x20]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00404650
add esp, 4
cmp eax, 0x14
lea edx, [esp + 0x20]
mov edi, 0x40dfac
jge 0x406dd8
mov edi, 0x40dfa0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d4af
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [esp + 0x20]
push eax
call fcn.00405050
add esp, 4
test eax, eax
je 0x406e69
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00404ed0
add esp, 0x10
push 0xc8
call ebx
lea edx, [esp + 0x20]
push edx
call ebp
inc esi
cmp esi, 0x14
jl 0x406e31
lea eax, [esp + 0x20]
push eax
call fcn.00405050
add esp, 4
test eax, eax
jne 0x406e82
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x20]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40d43c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.msvcrt.dll_strrchr]
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov edx, eax
mov edi, 0x40d495
or ecx, 0xffffffff
xor eax, eax
inc edx
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x406f16
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x20]
push 0x5c
push eax
call ebx
mov edx, eax
mov edi, 0x40d4c9
or ecx, 0xffffffff
xor eax, eax
inc edx
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x406f6d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x230]
test eax, eax
je 0x4070c3
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
push 0x40d565
lea eax, [esp + 0x24]
push 0x40e000
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
push 0
push 0xf003f
push 0
push 0
push ecx
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.00404450
test eax, eax
jne 0x406ff9
xor edi, edi
xor esi, esi
push esi
push edi
lea edx, [esp + 0x28]
push 0x40d1b4
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call fcn.004043f0
inc esi
cmp esi, 0x63
jle 0x406fc5
inc edi
cmp edi, 0x63
jle 0x406fc3
lea ecx, [esp + 0x10]
call fcn.00404430
push 0
push 0
push 0xf003f
push 0
push 0
push 0x40d565
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.00404450
test eax, eax
jne 0x4070c3
push 0x40dff8
lea ecx, [esp + 0x14]
call fcn.004043f0
push 0x40dfc0
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40dff0
lea ecx, [esp + 0x14]
call fcn.00404410
xor esi, esi
push esi
lea ecx, [esp + 0x24]
push 0x40dfe8
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x10]
push 0
push edx
push eax
call fcn.00404550
test eax, eax
jne 0x4070a6
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.00404ed0
add esp, 0x10
test eax, eax
je 0x40709c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x120]
push edx
call ebp
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call fcn.00404410
inc esi
cmp esi, 9
jle 0x40704d
lea ecx, [esp + 0x10]
call fcn.00404430
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.004043a0
mov ecx, dword [esp + 0x220]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret