Function at 0x401000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x41b0b0]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 0x10]
push eax
call fcn.004051a0
add esp, 4
test eax, eax
je 0x401065
push 0x41520c
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405110
add esp, 8
test eax, eax
jne 0x401048
mov dword [ebp - 8], 0
jmp 0x401065
mov edx, dword [ebp + 0x10]
push edx
call fcn.004050fe
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x401581
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea eax, [ebp - 0x127]
push eax
call fcn.00405240
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x128]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x415210
lea edx, [ebp - 0x128]
push edx
call fcn.00401b50
add esp, 8
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x128]
push eax
call fcn.004051a0
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
lea edx, [ebp + ecx - 0x128]
cmp dword [ebp - 0x140], edx
ja 0x4010fc
push 0x415214
mov eax, dword [ebp - 0x140]
add eax, 1
push eax
call fcn.00401b50
add esp, 8
test eax, eax
jne 0x4010fc
xor eax, eax
jmp 0x401581
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x150]
push ecx
push 0xf7
call fcn.004026f0
add esp, 8
mov dword [ebp - 0x148], eax
lea edx, [ebp - 0x134]
push edx
push 0x3b
call fcn.004026f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
je 0x401171
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x150]
movsx ecx, byte [eax - 1]
test ecx, ecx
jne 0x401167
cmp dword [ebp - 0x150], 0x104
jb 0x401171
mov dword [ebp - 0x148], 0
cmp dword [ebp - 4], 0
je 0x40119b
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x134]
movsx eax, byte [edx - 1]
test eax, eax
jne 0x401194
cmp dword [ebp - 0x134], 0x104
jb 0x40119b
mov dword [ebp - 4], 0
push 0
push 0
call fcn.00402bf8
add esp, 8
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0xc]
push ecx
push 0xc3
call fcn.004026f0
add esp, 8
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x4011e0
cmp dword [ebp - 8], 0
je 0x4011d8
call fcn.00401b90
or eax, 0xffffffff
jmp 0x401581
mov dword [ebp - 0x12c], 0
cmp dword [ebp - 0x130], 0
je 0x40120d
lea edx, [ebp - 0x144]
push edx
push 0xca
call fcn.004026f0
add esp, 8
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x1c]
call fcn.004015a0
lea ecx, [ebp - 0x14]
call fcn.004015a0
cmp dword [ebp - 4], 0
je 0x4012c9
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x184]
call fcn.004016e0
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00403380
add esp, 8
test eax, eax
jne 0x40129b
mov dword [ebp - 0x3a4], 0xfffffffc
lea ecx, [ebp - 0x184]
call fcn.00401af0
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea ecx, [ebp - 0x1c]
call fcn.004015d0
mov eax, dword [ebp - 0x3a4]
jmp 0x401581
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401660
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401660
lea ecx, [ebp - 0x184]
call fcn.00401af0
jmp 0x4013ea
mov eax, dword [ebp - 0x148]
push eax
push 0x415218
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.00401ca0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401660
lea ecx, [ebp - 0x3ac]
call fcn.004015d0
push 0x80
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401600
push eax
call fcn.00401f20
add esp, 0x10
test eax, eax
jne 0x40134d
cmp dword [ebp - 8], 0
je 0x401328
call fcn.00401b90
mov dword [ebp - 0x3b0], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea ecx, [ebp - 0x1c]
call fcn.004015d0
mov eax, dword [ebp - 0x3b0]
jmp 0x401581
cmp dword [ebp - 0x12c], 0
je 0x4013ea
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401600
push eax
lea ecx, [ebp - 0x290]
push ecx
call fcn.00402b2d
add esp, 0xc
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401610
push 0x80
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401600
push eax
call fcn.00401f20
add esp, 0x10
test eax, eax
jne 0x4013ea
lea ecx, [ebp - 0x1c]
call fcn.00401600
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
je 0x4013c5
call fcn.00401b90
mov dword [ebp - 0x3b4], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea ecx, [ebp - 0x1c]
call fcn.004015d0
mov eax, dword [ebp - 0x3b4]
jmp 0x401581
cmp dword [ebp - 0x130], 0
je 0x401416
cmp dword [ebp - 0x12c], 0
jne 0x401416
mov dword [ebp - 0x154], 1
lea ecx, [ebp - 0x1c]
call fcn.00401600
mov dword [ebp - 0x14c], eax
jmp 0x40145a
mov dword [ebp - 0x154], 0
cmp dword [ebp - 0x130], 0
je 0x401434
lea edx, [ebp - 0x14]
mov dword [ebp - 0x3c4], edx
jmp 0x40143d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c4], eax
mov ecx, dword [ebp - 0x3c4]
mov dword [ebp - 0x3b8], ecx
mov ecx, dword [ebp - 0x3b8]
call fcn.00401600
mov dword [ebp - 0x14c], eax
push 0
push 0
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x14c]
push eax
push 0x41521c
call fcn.0040323e
add esp, 0x14
test eax, eax
jne 0x4014d4
lea ecx, [ebp - 0x1c]
call fcn.00401600
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x12c], 0
je 0x4014a4
lea ecx, [ebp - 0x14]
call fcn.00401600
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
je 0x4014af
call fcn.00401b90
mov dword [ebp - 0x3bc], 0xfffffffd
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea ecx, [ebp - 0x1c]
call fcn.004015d0
mov eax, dword [ebp - 0x3bc]
jmp 0x401581
cmp dword [ebp - 8], 0
je 0x401561
mov byte [ebp - 0x3a0], 0
push 0x10d
push 0
lea ecx, [ebp - 0x39f]
push ecx
call fcn.00405240
add esp, 0xc
push str._u__i:__
lea edx, [ebp - 0x3a0]
push edx
call fcn.00404ff0
add esp, 8
push 0x104
lea eax, [ebp - 0x398]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x41522c
lea ecx, [ebp - 0x3a0]
push ecx
call fcn.00405000
add esp, 8
push 0
push 0
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x3a0]
push ecx
call fcn.0040323e
add esp, 0x14
test eax, eax
jne 0x401561
call fcn.00401b90
mov dword [ebp - 0x3c0], 0
lea ecx, [ebp - 0x14]
call fcn.004015d0
lea ecx, [ebp - 0x1c]
call fcn.004015d0
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040522b
mov esp, ebp
pop ebp
ret 0x10