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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff710
mov ebp, 0x4b6fc4
mov esi, 0x4c7d64
mov ebx, eax
mov byte [esp + 1], cl
mov byte [esp], dl
cmp byte [esp + 1], 0
je 0x458143
cmp byte [ebp + 0x1410], 0
je 0x4581b5
cmp dword [esi], 0
je 0x4581b5
mov byte [ebp + 0x1410], 0
jmp 0x4581b5
mov al, 1
call fcn.00457348
mov dword [ebp + 0x20c4], 2
test bl, bl
jne 0x45815e
cmp byte [esp], 0
je 0x458167
mov dl, byte [esp]
mov byte [ebp + 0x20fc], dl
mov dword [0x4c5748], 0
mov dword [0x4c574c], 0
cmp dword [0x4c4de0], 0
jne 0x4581b5
mov eax, 0x4c2454
mov cl, 1
mov edx, dword [ebp + 0x4af0]
call fcn.00469058
cmp byte [0x4c2871], 0
je 0x4581b5
mov eax, dword [ebp + 0x4af0]
cmp dword [eax + 0x30], 1
jbe 0x4581b5
mov dword [ebp + 0x20c0], 5
cmp dword [0x4c4de0], 0
jne 0x458283
cmp byte [ebp + 0x3ef0], 0
jne 0x458283
xor ebx, ebx
lea edx, [ebp + 0x3ef0]
mov eax, dword [ebp + 0x2aa8]
call fcn.00456751
lea eax, [ebp + 0x3ef0]
xor edx, edx
call fcn.0040c310
push 0x4a6503
push 0x400
lea ecx, [esp + 0xc]
mov edx, 0x4a69cf
mov eax, 0x4a6877
call fcn.0046c1a4
cmp byte [esp + 4], 0
jne 0x45822b
cmp byte [0x4c2871], 0
je 0x45822b
lea ecx, [esp + 4]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [esp + 4], 0
je 0x458263
lea eax, [esp + 4]
call fcn.0040bf64
lea edx, [ebp + 0x3ef0]
push edx
lea ecx, [esp + 8]
push ecx
call fcn.00494e7c
add esp, 8
lea eax, [esp + 4]
push eax
lea edx, [ebp + 0x3ef0]
push edx
call fcn.00494f58
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.00458570
cmp dword [ebp + 0x20c0], 0
jne 0x458296
mov dword [ebp + 0x20c0], 4
cmp dword [0x4c4de0], 0
je 0x45837d
mov edi, dword [0x4c33a4]
test edi, edi
je 0x4582da
cmp edi, 1
je 0x4582da
push 0x30
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x1fd
call fcn.0041202c
push eax
push dword [0x4c2440]
call sub.USER32.DLL_MessageBoxA
jmp 0x458563
lea ecx, [ebp + 0x42f0]
lea edx, [ebp + 0x3ef0]
mov eax, 0x4c319c
call fcn.00462710
lea edx, [ebp + 0x1811]
mov eax, 0x4c319c
xor ecx, ecx
call fcn.004626e4
cmp byte [ebp + 0x1811], 0
je 0x458316
lea eax, [ebp + 0x1811]
call fcn.0040bf64
mov byte [ebp + 0x20fe], 0
lea edx, [esp + 0x404]
mov eax, 0x4c319c
call fcn.00462744
mov edx, dword [esp + 0x414]
test edi, edi
mov dword [ebp + 0x2aa8], edx
jne 0x458349
cmp dword [esp + 0x45c], 0
je 0x458356
mov ecx, dword [esp + 0x488]
mov dword [ebp + 0x20b0], ecx
cmp dword [esp + 0x474], 0
je 0x458376
push str..rar_.zip_.cab_.7z_.ace_.arj_.bz2_.gz_.lha_.lzh_.taz_.tgz
lea eax, [ebp + 0x410]
push eax
call fcn.00494f58
add esp, 8
jmp 0x45837d
mov byte [ebp + 0x410], 0
push dword [0x4c2440]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x458394
mov edi, dword [0x4c2440]
jmp 0x458396
xor edi, edi
xor ecx, ecx
mov edx, ebx
mov eax, edi
call fcn.0045656d
test al, al
je 0x45854a
mov eax, dword [esi + 8]
cmp eax, 1
je 0x4583b6
cmp eax, 2
jne 0x458400
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push str._dd_dh_dm
lea edx, [esp + 0x4b0]
push edx
call fcn.00497eb8
add esp, 0x14
cmp dword [esi + 8], 1
jne 0x4583ee
lea edx, [esp + 0x4a0]
lea eax, [ebp + 0x215c]
call fcn.00413b78
jmp 0x458400
lea edx, [esp + 0x4a0]
lea eax, [ebp + 0x2188]
call fcn.00413b78
mov eax, dword [esi]
test eax, eax
je 0x45840f
xor edx, edx
call fcn.0045785c
jmp 0x458436
cmp dword [0x4c4de0], 0
je 0x458436
cmp dword [esp + 0x474], 0
je 0x458436
xor edx, edx
mov dl, byte [ebp + 0x410]
cmp edx, 0x2a
jne 0x458436
mov byte [ebp + 0x410], 0
mov ecx, dword [ebp + 0x4af0]
cmp dword [ecx + 0x30], 0
jne 0x45846a
push 0x30
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x14b
call fcn.0041202c
push eax
push dword [0x4c2440]
call sub.USER32.DLL_MessageBoxA
jmp 0x45854a
cmp byte [ebp + 0x1c11], 0
setne al
and eax, 1
mov byte [0x4c29f0], al
mov eax, 0x4c29c4
call fcn.00449644
cmp byte [esi + 0x1a], 0
je 0x458493
call fcn.0045509d
jmp 0x4584a3
mov eax, 0x4c319c
mov dl, byte [ebp + 0x32ad]
call fcn.0045de80
cmp dword [esi], 0
je 0x4584b4
lea ecx, [ebp + 0x1410]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
cmp dword [0x4c4de4], 1
je 0x45854a
cmp dword [0x4c4de0], 0
je 0x4584d6
mov eax, 0x4c2454
call fcn.00465248
jmp 0x45854a
cmp byte [ebp + 0x20fc], 0
je 0x4584e9
mov eax, 0x4c297c
call fcn.00469a50
lea edx, [esp + 0x4f0]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [esp + 0x4f0]
push ecx
call fcn.00494f88
pop ecx
mov ecx, eax
lea edx, [ebp + 0x3ef0]
lea eax, [esp + 0x4f0]
call fcn.0040ee24
test eax, eax
jne 0x45853a
lea eax, [ebp + 0x3ef0]
call fcn.0040ba60
mov edx, eax
mov eax, 0x4c2454
call fcn.00463974
jmp 0x45854a
lea edx, [ebp + 0x3ef0]
mov eax, 0x4c2454
call fcn.00463974
push dword [esi]
call fcn.0049355c
pop ecx
mov byte [0x4c29f0], 0
mov eax, 0x4c29c4
call fcn.00449644
add esp, 0x8f0
pop ebp
pop edi
pop esi
pop ebx
ret