Function at 0x458b34
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, 0x4ae7e4
mov eax, 0x49ef9c
call fcn.0048d8c4
cmp dword [0x4bc1a4], 1
jne 0x458c10
cmp byte [esi + 0x410], 0
je 0x458c10
mov edx, 0x49ebb2
lea eax, [esi + 0x3ed8]
call fcn.0040b9bc
test al, al
jne 0x458c10
mov edx, 0x49ebb6
lea eax, [esi + 0x3ed8]
call fcn.0040b9bc
test al, al
jne 0x458c10
mov edx, 0x49ebba
lea eax, [esi + 0x3ed8]
call fcn.0040b9bc
test al, al
jne 0x458bfa
mov edx, 0x49ebbe
lea eax, [esi + 0x3ed8]
call fcn.0040b9bc
test al, al
jne 0x458bfa
push 0x49ebc2
lea edx, [esi + 0x3ed8]
push edx
call fcn.0048d348
add esp, 8
cmp word [esi + 0x42d8], 0
je 0x458bfa
mov edx, 0x49ebc8
lea eax, [esi + 0x42d8]
call fcn.0040fa2c
lea eax, [esi + 0x3ed8]
call fcn.0040b93c
lea eax, [esi + 0x42d8]
call fcn.0040b948
cmp dword [esi + 0x20cc], 0
jne 0x458c20
cmp dword [esi + 0x20c8], 0
je 0x458c80
cmp dword [esi + 0x20cc], 0x80000000
jne 0x458c65
cmp dword [esi + 0x20c8], 0
jne 0x458c65
cmp byte [esi + 0x20f9], 0
jne 0x458c65
lea edx, [esi + 0x3ed8]
push edx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x458c65
mov dword [esi + 0x20c8], 0
mov dword [esi + 0x20cc], 0
mov eax, dword [0x4b5380]
and eax, 0x18
test eax, eax
je 0x458c80
cmp dword [esi + 0x20b0], 0
je 0x458c80
or dword [esi + 0x20b0], eax
lea ecx, [esi + 0x10]
lea edx, [esi + 0x3ed8]
mov eax, edi
call fcn.0045926c
mov eax, dword [esi + 0x2a90]
call fcn.00443fdc
mov word [ebp - 0x1438], 8
mov edx, esi
lea eax, [ebp - 0x1424]
call fcn.004723ec
add dword [ebp - 0x142c], 2
mov word [ebp - 0x1438], 0x14
cmp byte [esi + 0x20fe], 0
je 0x458cef
cmp dword [esi + 0x2a90], 0
je 0x458cef
lea edx, [esi + 0x20ff]
lea eax, [esi + 0x3ed8]
xor ecx, ecx
call fcn.0040c3cc
mov word [esi + 0x42d8], 0
lea eax, [esi + 0x3ed8]
xor edx, edx
call fcn.0040a0e0
test al, al
je 0x458d7f
cmp dword [0x4bc1a0], 0
je 0x458d10
mov byte [edi + 0x1c42], 1
push 1
push 0
lea edx, [esi + 0x3ed8]
xor ecx, ecx
mov eax, edi
call fcn.0045bc70
dec eax
jne 0x458d7f
mov eax, dword [edi + 0x208]
test eax, eax
je 0x458d7f
dec eax
je 0x458d7f
push 0x30
mov eax, 0x65
call fcn.004117b8
push eax
mov eax, 0x1fd
call fcn.004117b8
push eax
push dword [0x4b9818]
call sub.USER32.DLL_MessageBoxA
sub dword [ebp - 0x142c], 2
lea eax, [ebp - 0x1424]
mov edx, 2
call fcn.00472784
mov ecx, dword [ebp - 0x1448]
mov dword fs:[0], ecx
jmp 0x458e39
push 0
lea edx, [esi + 0x3ed8]
mov cl, byte [ebp - 0x1449]
xor eax, eax
call fcn.00475ac0
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 [0x4bc1a4], 0
jne 0x458dc0
test bl, bl
je 0x458dc0
push dword [0x4b9824]
call sub.USER32.DLL_DestroyWindow
lea edx, [ebp - 0x184c]
lea eax, [esi + 0x3ed8]
call fcn.0040a580
push 0x5c
lea ecx, [ebp - 0x184c]
push ecx
call fcn.0048d579
add esp, 8
test eax, eax
je 0x458dfd
lea edx, [ebp - 0x184c]
cmp eax, edx
je 0x458dfd
xor ecx, ecx
mov cl, byte [eax - 1]
cmp ecx, 0x3a
je 0x458dfd
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.00472784
mov ecx, dword [ebp - 0x1448]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret