Function at 0x405940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a79af
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
cmp dword [ebp + 8], 0
jne 0x40597e
xor eax, eax
jmp 0x405eae
cmp dword [ebp + 0x10], 0
jne 0x40598b
xor eax, eax
jmp 0x405eae
cmp dword [ebp + 0xc], 0
jne 0x405998
xor eax, eax
jmp 0x405eae
push 0x100000
push 0xa00000
push 0xa00000
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409470
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00406dd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x19c], 0
jbe 0x4059e5
cmp dword [ebp - 0x10], 0
jne 0x405a09
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1a8]
jmp 0x405eae
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1d0]
call fcn.004058f0
push 0x4c20cc
lea edx, [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x1d0]
call fcn.004057d0
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405a6d
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1ac]
jmp 0x405eae
lea ecx, [ebp - 0x1a0]
call fcn.00404690
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00406e20
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x405acc
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1b0]
jmp 0x405eae
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1a4]
call fcn.00406f00
mov byte [ebp - 4], 2
push 0x5c
lea ecx, [ebp - 0x1a4]
call fcn.00406fa0
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x405b0e
push 0x2f
lea ecx, [ebp - 0x1a4]
call fcn.00406fa0
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
add edx, 1
push edx
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00406ff0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
lea ecx, [ebp - 0x188]
call fcn.004090c0
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00406e60
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x405bb9
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1b4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1b4]
jmp 0x405eae
lea ecx, [ebp - 0x1a0]
call fcn.00406ed0
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0x194]
push ecx
lea edx, [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x1d0]
call fcn.00405540
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405c54
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1b8]
jmp 0x405eae
mov byte [ebp - 0x74], 0
xor ecx, ecx
mov dword [ebp - 0x73], ecx
mov dword [ebp - 0x6f], ecx
mov dword [ebp - 0x6b], ecx
mov word [ebp - 0x67], cx
mov byte [ebp - 0x65], cl
push 0x10
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1d0]
call fcn.004055f0
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405cec
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1bc]
jmp 0x405eae
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 4]
mov dword [ebp - 0x190], eax
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x190]
push edx
push 0
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x1d0]
call fcn.004056b0
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405d7a
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1c0]
jmp 0x405eae
mov ecx, dword [ebp - 0x190]
push ecx
mov ecx, dword [ebp - 0x1d0]
call fcn.004053a0
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405dec
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1c4]
jmp 0x405eae
mov edx, dword [ebp - 0x190]
push edx
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x1d0]
call fcn.00405710
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x405e62
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1c8]
jmp 0x405eae
mov dword [ebp - 0x1cc], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00406f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00406f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a0]
call fcn.00406e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00406d70
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret 0xc