Function at 0x458078
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff710
mov ebp, 0x4b6ec4
mov esi, 0x4c7c64
mov ebx, eax
mov byte [esp + 1], cl
mov byte [esp], dl
cmp byte [esp + 1], 0
je 0x4580b7
cmp byte [ebp + 0x1410], 0
je 0x458129
cmp dword [esi], 0
je 0x458129
mov byte [ebp + 0x1410], 0
jmp 0x458129
mov al, 1
call fcn.004572bc
mov dword [ebp + 0x20c4], 2
test bl, bl
jne 0x4580d2
cmp byte [esp], 0
je 0x4580db
mov dl, byte [esp]
mov byte [ebp + 0x20fc], dl
mov dword [0x4c5648], 0
mov dword [0x4c564c], 0
cmp dword [0x4c4ce0], 0
jne 0x458129
mov eax, 0x4c2354
mov cl, 1
mov edx, dword [ebp + 0x4af0]
call fcn.00468fcc
cmp byte [0x4c2771], 0
je 0x458129
mov eax, dword [ebp + 0x4af0]
cmp dword [eax + 0x30], 1
jbe 0x458129
mov dword [ebp + 0x20c0], 5
cmp dword [0x4c4ce0], 0
jne 0x4581f7
cmp byte [ebp + 0x3ef0], 0
jne 0x4581f7
xor ebx, ebx
lea edx, [ebp + 0x3ef0]
mov eax, dword [ebp + 0x2aa8]
call fcn.004566c5
lea eax, [ebp + 0x3ef0]
xor edx, edx
call fcn.0040c310
push 0x4a642b
push 0x400
lea ecx, [esp + 0xc]
mov edx, 0x4a68f7
mov eax, 0x4a679f
call fcn.0046c0c4
cmp byte [esp + 4], 0
jne 0x45819f
cmp byte [0x4c2771], 0
je 0x45819f
lea ecx, [esp + 4]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [esp + 4], 0
je 0x4581d7
lea eax, [esp + 4]
call fcn.0040bf64
lea edx, [ebp + 0x3ef0]
push edx
lea ecx, [esp + 8]
push ecx
call fcn.00494d88
add esp, 8
lea eax, [esp + 4]
push eax
lea edx, [ebp + 0x3ef0]
push edx
call fcn.00494e64
add esp, 8
push dword [ebp + 0x2aa8]
cmp byte [ebp + 0x410], 0
setne cl
and ecx, 1
lea eax, [ebp + 0x3ef0]
xor edx, edx
call fcn.004584e4
cmp dword [ebp + 0x20c0], 0
jne 0x45820a
mov dword [ebp + 0x20c0], 4
cmp dword [0x4c4ce0], 0
je 0x4582f1
mov edi, dword [0x4c32a4]
test edi, edi
je 0x45824e
cmp edi, 1
je 0x45824e
push 0x30
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x1fd
call fcn.0041202c
push eax
push dword [0x4c2340]
call sub.USER32.DLL_MessageBoxA
jmp 0x4584d7
lea ecx, [ebp + 0x42f0]
lea edx, [ebp + 0x3ef0]
mov eax, 0x4c309c
call fcn.00462684
lea edx, [ebp + 0x1811]
mov eax, 0x4c309c
xor ecx, ecx
call fcn.00462658
cmp byte [ebp + 0x1811], 0
je 0x45828a
lea eax, [ebp + 0x1811]
call fcn.0040bf64
mov byte [ebp + 0x20fe], 0
lea edx, [esp + 0x404]
mov eax, 0x4c309c
call fcn.004626b8
mov edx, dword [esp + 0x414]
test edi, edi
mov dword [ebp + 0x2aa8], edx
jne 0x4582bd
cmp dword [esp + 0x45c], 0
je 0x4582ca
mov ecx, dword [esp + 0x488]
mov dword [ebp + 0x20b0], ecx
cmp dword [esp + 0x474], 0
je 0x4582ea
push 0x4a64ac
lea eax, [ebp + 0x410]
push eax
call fcn.00494e64
add esp, 8
jmp 0x4582f1
mov byte [ebp + 0x410], 0
push dword [0x4c2340]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x458308
mov edi, dword [0x4c2340]
jmp 0x45830a
xor edi, edi
xor ecx, ecx
mov edx, ebx
mov eax, edi
call fcn.004564e1
test al, al
je 0x4584be
mov eax, dword [esi + 8]
cmp eax, 1
je 0x45832a
cmp eax, 2
jne 0x458374
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push 0x4a66f6
lea edx, [esp + 0x4b0]
push edx
call fcn.00497dc4
add esp, 0x14
cmp dword [esi + 8], 1
jne 0x458362
lea edx, [esp + 0x4a0]
lea eax, [ebp + 0x215c]
call fcn.00413b78
jmp 0x458374
lea edx, [esp + 0x4a0]
lea eax, [ebp + 0x2188]
call fcn.00413b78
mov eax, dword [esi]
test eax, eax
je 0x458383
xor edx, edx
call fcn.004577d0
jmp 0x4583aa
cmp dword [0x4c4ce0], 0
je 0x4583aa
cmp dword [esp + 0x474], 0
je 0x4583aa
xor edx, edx
mov dl, byte [ebp + 0x410]
cmp edx, 0x2a
jne 0x4583aa
mov byte [ebp + 0x410], 0
mov ecx, dword [ebp + 0x4af0]
cmp dword [ecx + 0x30], 0
jne 0x4583de
push 0x30
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x14b
call fcn.0041202c
push eax
push dword [0x4c2340]
call sub.USER32.DLL_MessageBoxA
jmp 0x4584be
cmp byte [ebp + 0x1c11], 0
setne al
and eax, 1
mov byte [0x4c28f0], al
mov eax, 0x4c28c4
call fcn.004495b8
cmp byte [esi + 0x1a], 0
je 0x458407
call fcn.00455011
jmp 0x458417
mov eax, 0x4c309c
mov dl, byte [ebp + 0x32ad]
call fcn.0045ddf4
cmp dword [esi], 0
je 0x458428
lea ecx, [ebp + 0x1410]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
cmp dword [0x4c4ce4], 1
je 0x4584be
cmp dword [0x4c4ce0], 0
je 0x45844a
mov eax, 0x4c2354
call fcn.004651bc
jmp 0x4584be
cmp byte [ebp + 0x20fc], 0
je 0x45845d
mov eax, 0x4c287c
call fcn.004699c4
lea edx, [esp + 0x4f0]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [esp + 0x4f0]
push ecx
call fcn.00494e94
pop ecx
mov ecx, eax
lea edx, [ebp + 0x3ef0]
lea eax, [esp + 0x4f0]
call fcn.0040ee24
test eax, eax
jne 0x4584ae
lea eax, [ebp + 0x3ef0]
call fcn.0040ba60
mov edx, eax
mov eax, 0x4c2354
call fcn.004638e8
jmp 0x4584be
lea edx, [ebp + 0x3ef0]
mov eax, 0x4c2354
call fcn.004638e8
push dword [esi]
call fcn.00493468
pop ecx
mov byte [0x4c28f0], 0
mov eax, 0x4c28c4
call fcn.004495b8
add esp, 0x8f0
pop ebp
pop edi
pop esi
pop ebx
ret