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

Disassembly:
push 0x114
mov eax, 0x637214
call fcn.0040eb77
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.004ac9bb
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x58]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0040471e
mov ecx, eax
call fcn.004ae19d
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 0x4b434b
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.004bafa8
pop ecx
pop ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407dd8
cmp dword [edi + 8], ebx
jne 0x4b44c1
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4b435f
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.004bb3b4
add esp, 0xc
test esi, esi
jne 0x4b43e9
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.00403856
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 4
jmp 0x4b4414
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004040a3
lea eax, [ebp - 0xa0]
push eax
call fcn.004acef1
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.00403856
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 6
push eax
call fcn.004b0384
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b04cb
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.004089ed
lea ecx, [ebp - 0xc8]
call fcn.004038dd
test bl, 2
je 0x4b44ad
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffd
call fcn.004038dd
mov dword [ebp - 4], 2
test bl, 1
je 0x4b44c1
lea ecx, [ebp - 0x28]
call fcn.004038dd
xor ebx, ebx
push ebx
call fcn.0050193d
push edx
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004ac9a2
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.00403856
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.004b0384
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b04cb
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ecx + 0x28]
call fcn.004089ed
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004038dd
push dword [edi + 0x40]
lea eax, [ebp - 0xf8]
push eax
call fcn.004ac9bb
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.00403856
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004b0384
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b04cb
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ecx + 0x28]
call fcn.004089ed
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.004038dd
push dword [edi + 4]
lea eax, [ebp - 0xe0]
push eax
call fcn.004ac9bb
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.00403856
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.004b0384
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b04cb
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ecx + 0x28]
call fcn.004089ed
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.004038dd
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.00403856
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.00404e5b
lea eax, [ebp - 0xa0]
push eax
call fcn.004acef1
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.004b0384
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
add ecx, 0x28
push eax
call fcn.004b04cb
mov ecx, dword [ebp - 0x118]
push esi
lea ecx, [ecx + 0x28]
call fcn.004089ed
lea ecx, [ebp - 0xa0]
call fcn.004038dd
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.004038dd
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x58]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push eax
call fcn.00404e5b
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
push edi
push eax
call fcn.004b3d3a
pop ecx
pop ecx
push 8
pop edi
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], edi
jb 0x4b472f
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 0x4b4772
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.00404e5b
lea eax, [ebp - 0xa0]
push eax
call fcn.004acef1
add esp, 0x20
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.004b5b85
lea ecx, [ebp - 0xa0]
call fcn.004038dd
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.004038dd
lea ecx, [ebp - 0xf8]
call fcn.004038dd
lea ecx, [ebp - 0x110]
call fcn.004038dd
lea ecx, [ebp - 0x58]
call fcn.0040199e
lea ecx, [ebp - 0x88]
call fcn.004038dd
lea ecx, [ebp - 0x70]
call fcn.0040199e
mov al, bl
call fcn.0040eb21
ret 8