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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5790b4
mov eax, dword fs:[0]
push eax
mov eax, 0x1244
call fcn.0052c270
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x49afd4
mov eax, dword [edi + 0x580]
mov esi, dword [eax + 0x1c]
call fcn.00439ba0
mov eax, dword [edi]
lea ecx, [ebp - 0x1250]
mov dword [ebp - 0x1248], 0x3fd
push ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1250], eax
lea eax, [edi + 0x68a08]
mov ecx, eax
mov dword [ebp - 0x124c], esi
mov dword [ebp - 0x11ec], eax
call fcn.004c1430
lea eax, [esi + 0x74]
xor bl, bl
cmp dword [eax + 0x14], 8
jb 0x49b01b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x49b0c4
mov eax, dword [edi]
lea ecx, [ebp - 0x11e4]
push dword [eax + 4]
push dword [eax + 0xc]
call fcn.0043b040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11e4]
push 0
push 0x587888
push str.All_types
push eax
call fcn.0043c6a0
add esp, 0x10
lea eax, [ebp - 0x11e4]
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.0049d660
push dword [esi + 0x8c]
lea eax, [ebp - 0x11e4]
push 0x820
push eax
call fcn.0054bd88
add esp, 0xc
lea ecx, [ebp - 0x11e4]
call fcn.0043bcc0
test eax, eax
je 0x49b0ad
push eax
push esi
call fcn.00439ba0
mov ecx, eax
call fcn.0041bf60
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11e4]
call fcn.0043b1b0
jmp 0x49b3d0
push 9
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.__:___
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00406c80
mov dword [ebp - 4], 1
xor eax, eax
push 0x12
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
push str.Rename_Current_Tab
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push ecx
push str.tabrename_title
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [edi + 0x300]
call fcn.0045ff80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x49b165
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x44], 7
push 0xa
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push str.New_Name:
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00406c80
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
push eax
push str.tabrename_newname
lea eax, [ebp - 0x70]
push eax
lea ecx, [edi + 0x300]
call fcn.0045ff80
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x49b1d1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00497120
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c], 8
mov ecx, dword [ebp - 0x40]
jae 0x49b200
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x49b20c
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], 8
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x11e8], eax
jae 0x49b224
lea edx, [ebp - 0x88]
mov eax, dword [edi]
push 1
push ecx
push 0
push dword [esi + 0x8c]
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x11e8]
push edx
push dword [eax + 0xc]
push dword [eax + 4]
call fcn.0049c1a0
lea eax, [ebp - 0x12c]
push eax
push 0x4e9470
push dword [ebp - 0x124]
push 0x6590
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x49b32e
push 0
push eax
mov ecx, esi
mov bl, 1
call fcn.0041cbe0
call fcn.0040baa0
cmp byte [eax + 0x6fd], 0
je 0x49b32e
cmp byte [eax + 0x9a], 0
je 0x49b32e
cmp byte [eax + 0x9b], 0
jne 0x49b32e
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041b050
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
push 0x5883b8
call fcn.004029a0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x98]
lea eax, [ebp - 0xa0]
cmp ecx, eax
je 0x49b2e9
push 0xffffffffffffffff
push 0
push eax
call fcn.00406ac0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.004038c0
mov byte [esi + 0xb0], 1
call fcn.00439ba0
mov ecx, eax
call fcn.00419820
test al, al
je 0x49b322
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x49b31b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004038c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x12c]
call fcn.004973b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x49b356
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x49b389
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x49b3bc
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x11ec]
xor eax, eax
test bl, bl
setne al
add eax, 0x3fe
mov dword [ebp - 0x1248], eax
lea eax, [ebp - 0x1250]
push eax
call fcn.004c1430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4