Function at 0x4b42f2
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x114
mov eax, 0x6372d4
call fcn.0040ebd7
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push dword [edi]
lea eax, [ebp - 0x88]
mov dword [ebp - 4], ecx
push eax
call fcn.004aca2b
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x58]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.004047a6
mov ecx, eax
call fcn.004ae20d
push 0x6b4c58
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401918
push 0x6b4c90
lea ecx, [ebp - 0x58]
call fcn.00401918
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b43bb
and dword [ebp - 0x8c], eax
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xb0]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call fcn.004bb01b
pop ecx
pop ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407e81
cmp dword [edi + 8], ebx
jne 0x4b4531
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4b43cf
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
mov esi, eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.004018a7
push 0x6b4c90
lea ecx, [ebp - 0x70]
call fcn.00401918
test esi, esi
lea ecx, [ebp - 0x70]
mov eax, 0x64b86c
cmovne eax, esi
push eax
call fcn.00401918
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push dword [ecx + 4]
push dword [ecx + 8]
push eax
call fcn.004bb427
add esp, 0xc
test esi, esi
jne 0x4b4459
and dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
push 4
push str.aaaa
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403902
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
jmp 0x4b4484
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00404153
lea eax, [ebp - 0xa0]
push eax
call fcn.004acf61
add esp, 0x20
mov esi, eax
push 2
mov dword [ebp - 4], 5
pop ebx
and dword [ebp - 0xb8], 0
lea ecx, [ebp - 0xc8]
push 2
push 0x64b878
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
call fcn.00403902
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 6
push eax
call fcn.004b03f4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b053b
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.00408a6a
lea ecx, [ebp - 0xc8]
call fcn.00403989
test bl, 2
je 0x4b451d
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffd
call fcn.00403989
mov dword [ebp - 4], 2
test bl, 1
je 0x4b4531
lea ecx, [ebp - 0x28]
call fcn.00403989
xor ebx, ebx
push ebx
call fcn.0050199d
push edx
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004aca12
add esp, 0x10
push 0xf
pop esi
push 2
push 0x64b85c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.00403902
mov ebx, dword [ebp - 0x120]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.004b03f4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b053b
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ecx + 0x28]
call fcn.00408a6a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00403989
push dword [edi + 0x40]
lea eax, [ebp - 0xf8]
push eax
call fcn.004aca2b
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 6
push str.intert
mov byte [ebp - 4], 9
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.00403902
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004b03f4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b053b
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ecx + 0x28]
call fcn.00408a6a
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.00403989
push dword [edi + 4]
lea eax, [ebp - 0xe0]
push eax
call fcn.004aca2b
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 2
push 0x64b850
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.00403902
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004b03f4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b053b
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ecx + 0x28]
call fcn.00408a6a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00403989
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 3
push 0x64b860
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.00403902
push 0x3a8
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
lea eax, [edi + 0x28]
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404ea2
lea eax, [ebp - 0xa0]
push eax
call fcn.004acf61
add esp, 0x20
mov esi, eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004b03f4
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b053b
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.00408a6a
lea ecx, [ebp - 0xa0]
call fcn.00403989
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00403989
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x58]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push eax
call fcn.00404ea2
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
push edi
push eax
call fcn.004b3daa
pop ecx
pop ecx
push 8
pop edi
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], edi
jb 0x4b479f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004018a7
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.0040199e
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x4b47e2
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404ea2
lea eax, [ebp - 0xa0]
push eax
call fcn.004acf61
add esp, 0x20
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.004b5bf5
lea ecx, [ebp - 0xa0]
call fcn.00403989
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
lea ecx, [ebp - 0x40]
setne bl
call fcn.0040199e
lea ecx, [ebp - 0xe0]
call fcn.00403989
lea ecx, [ebp - 0xf8]
call fcn.00403989
lea ecx, [ebp - 0x110]
call fcn.00403989
lea ecx, [ebp - 0x58]
call fcn.0040199e
lea ecx, [ebp - 0x88]
call fcn.00403989
lea ecx, [ebp - 0x70]
call fcn.0040199e
mov al, bl
call fcn.0040eb81
ret 8