Function at 0x458a8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff7b4
push ebx
push esi
push edi
mov byte [ebp - 0x1449], dl
mov edi, eax
mov esi, 0x4ae7ec
mov eax, 0x49f010
call fcn.0048dbf8
cmp dword [0x4bc1ac], 1
jne 0x458b68
cmp byte [esi + 0x410], 0
je 0x458b68
mov edx, 0x49ec26
lea eax, [esi + 0x3ed8]
call fcn.0040b9a4
test al, al
jne 0x458b68
mov edx, 0x49ec2a
lea eax, [esi + 0x3ed8]
call fcn.0040b9a4
test al, al
jne 0x458b68
mov edx, 0x49ec2e
lea eax, [esi + 0x3ed8]
call fcn.0040b9a4
test al, al
jne 0x458b52
mov edx, 0x49ec32
lea eax, [esi + 0x3ed8]
call fcn.0040b9a4
test al, al
jne 0x458b52
push 0x49ec36
lea edx, [esi + 0x3ed8]
push edx
call fcn.0048d67c
add esp, 8
cmp word [esi + 0x42d8], 0
je 0x458b52
mov edx, str..ext
lea eax, [esi + 0x42d8]
call fcn.0040f954
lea eax, [esi + 0x3ed8]
call fcn.0040b924
lea eax, [esi + 0x42d8]
call fcn.0040b930
cmp dword [esi + 0x20cc], 0
jne 0x458b78
cmp dword [esi + 0x20c8], 0
je 0x458bd8
cmp dword [esi + 0x20cc], 0x80000000
jne 0x458bbd
cmp dword [esi + 0x20c8], 0
jne 0x458bbd
cmp byte [esi + 0x20f9], 0
jne 0x458bbd
lea edx, [esi + 0x3ed8]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x458bbd
mov dword [esi + 0x20c8], 0
mov dword [esi + 0x20cc], 0
mov eax, dword [0x4b5388]
and eax, 0x18
test eax, eax
je 0x458bd8
cmp dword [esi + 0x20b0], 0
je 0x458bd8
or dword [esi + 0x20b0], eax
lea ecx, [esi + 0x10]
lea edx, [esi + 0x3ed8]
mov eax, edi
call fcn.004591c4
mov eax, dword [esi + 0x2a90]
call fcn.00443f10
mov word [ebp - 0x1438], 8
mov edx, esi
lea eax, [ebp - 0x1424]
call fcn.00472698
add dword [ebp - 0x142c], 2
mov word [ebp - 0x1438], 0x14
cmp byte [esi + 0x20fe], 0
je 0x458c47
cmp dword [esi + 0x2a90], 0
je 0x458c47
lea edx, [esi + 0x20ff]
lea eax, [esi + 0x3ed8]
xor ecx, ecx
call fcn.0040c3b4
mov word [esi + 0x42d8], 0
lea eax, [esi + 0x3ed8]
xor edx, edx
call fcn.0040a0c8
test al, al
je 0x458cd7
cmp dword [0x4bc1a8], 0
je 0x458c68
mov byte [edi + 0x1c42], 1
push 1
push 0
lea edx, [esi + 0x3ed8]
xor ecx, ecx
mov eax, edi
call fcn.0045bbc8
dec eax
jne 0x458cd7
mov eax, dword [edi + 0x208]
test eax, eax
je 0x458cd7
dec eax
je 0x458cd7
push 0x30
mov eax, 0x65
call fcn.004116e0
push eax
mov eax, 0x1fd
call fcn.004116e0
push eax
push dword [0x4b9820]
call sub.USER32.DLL_MessageBoxA
sub dword [ebp - 0x142c], 2
lea eax, [ebp - 0x1424]
mov edx, 2
call fcn.00472a30
mov ecx, dword [ebp - 0x1448]
mov dword fs:[0], ecx
jmp 0x458d91
push 0
lea edx, [esi + 0x3ed8]
mov cl, byte [ebp - 0x1449]
xor eax, eax
call fcn.00475d6c
mov ebx, eax
mov eax, dword [esi + 0x2a90]
mov eax, dword [edi + eax*4 + 0x104]
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [0x4bc1ac], 0
jne 0x458d18
test bl, bl
je 0x458d18
push dword [0x4b982c]
call sub.USER32.DLL_DestroyWindow
lea edx, [ebp - 0x184c]
lea eax, [esi + 0x3ed8]
call fcn.0040a568
push 0x5c
lea ecx, [ebp - 0x184c]
push ecx
call fcn.0048d8ad
add esp, 8
test eax, eax
je 0x458d55
lea edx, [ebp - 0x184c]
cmp eax, edx
je 0x458d55
xor ecx, ecx
mov cl, byte [eax - 1]
cmp ecx, 0x3a
je 0x458d55
mov byte [eax], 0
push 0
lea eax, [ebp - 0x184c]
push eax
push 0x2001
push 0x1000
call sub.SHELL32.DLL_SHChangeNotify
sub dword [ebp - 0x142c], 2
lea eax, [ebp - 0x1424]
mov edx, 2
call fcn.00472a30
mov ecx, dword [ebp - 0x1448]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret