Function at 0x4017aa
Capabilities:
Delete file
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push ebx
mov ecx, ebx
mov dword [ebp - 0x10], edi
call fcn.00401e39
push eax
call fcn.00403ac7
pop ecx
pop ecx
push 0x404165
push 0x404188
mov ecx, ebx
call fcn.00401d62
lea ecx, [ebp - 8]
call fcn.00401e3c
push dword [ebp - 0x10]
mov esi, 0x404184
push esi
mov ecx, ebx
call fcn.00401bc1
cmp eax, 0xffffffff
je 0x401a0b
inc eax
push eax
push esi
mov ecx, ebx
mov dword [ebp - 0x10], eax
inc edi
call fcn.00401bc1
cmp eax, 0xffffffff
jne 0x401800
test edi, edi
mov dword [ebp - 0x24], edi
je 0x401a0b
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
test edi, edi
jle 0x401a0b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.00401ffa
mov ecx, eax
call fcn.00401e39
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401e8d
lea ecx, [ebp - 8]
call fcn.00401fdd
lea ecx, [ebp - 0x34]
call fcn.00401ebe
push 0x404165
lea ecx, [ebp - 8]
call fcn.00401de9
test eax, eax
je 0x401879
inc dword [ebp - 0xc]
jmp 0x4019ff
lea ecx, [ebp - 0x2c]
call fcn.00401e3c
push 0
push 0x2c
lea ecx, [ebp - 8]
or ebx, 0xffffffff
call fcn.00401c16
mov edi, eax
cmp edi, 0xffffffff
je 0x4018db
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 8]
call fcn.00401f36
mov ecx, eax
call fcn.00401e39
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401e8d
lea ecx, [ebp - 0x2c]
call fcn.00401fdd
lea ecx, [ebp - 0x4c]
call fcn.00401ebe
inc edi
push edi
push 0
lea ecx, [ebp - 8]
call fcn.00401c45
lea ecx, [ebp - 0x2c]
call fcn.00401dc5
mov ebx, eax
push 0x100
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401e8d
push str.System32_
lea ecx, [ebp - 0x18]
call fcn.00401b89
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp - 8]
call fcn.00401cc6
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 8]
call fcn.00401ed0
mov ecx, eax
call fcn.00401e39
push eax
lea ecx, [ebp - 0x18]
call fcn.00401dfd
lea ecx, [ebp - 0x3c]
call fcn.00401ebe
lea ecx, [ebp - 0x18]
call fcn.00401e39
push eax
lea ecx, [ebp - 8]
call fcn.00401e39
push eax
call fcn.0040365f
test eax, eax
pop ecx
pop ecx
je 0x4019ec
lea ecx, [ebp - 0x18]
call fcn.00401e39
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x401975
push eax
call fcn.0040155e
pop ecx
jmp 0x4019ec
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.00401e39
push eax
call fcn.004035ea
pop ecx
pop ecx
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x20], ebx
jne 0x4019e3
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp - 8]
call fcn.00401cc6
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 8]
call fcn.00401ed0
mov ecx, eax
call fcn.00401e39
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401e8d
call fcn.0040163a
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
call fcn.00401ebe
push dword [ebp - 0x1c]
jmp 0x40196d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
inc dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00401ebe
lea ecx, [ebp - 0x2c]
call fcn.00401ebe
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
jl 0x40182e
lea ecx, [ebp - 8]
call fcn.00401ebe
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret