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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
inc dword [esi + 0x10]
call fcn.004567d0
test eax, eax
jne 0x458ba8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [0x4f7f30]
add eax, 0x978
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x458bdd
mov eax, 1
jmp 0x458d26
mov ecx, 0x9c7
call fcn.00457ac0
mov edi, eax
xor eax, eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x818]
push 0x4d55dc
push eax
lea eax, [ebp - 0x208]
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x208]
push eax
jne 0x458c66
push 0x4d7b84
push 0x4d7b90
lea eax, [ebp - 0x610]
push 0x4d7c0c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x610]
push 0x30
push str.Script
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x458d21
push edi
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x81c], 0
call fcn.00486d70
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.00486f10
push str.Plugin
lea eax, [ebp - 0x818]
mov dword [ebp - 0x820], 0
push eax
lea eax, [ebp - 0x208]
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x458d21
lea eax, [ebp - 0x208]
mov dword [ebp - 0x81c], 0
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.00486d70
xor eax, eax
lea ecx, [ebp - 0x820]
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x410]
push 1
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.00486f10
mov dword [ebx + 0x30], edi
xor eax, eax
mov ecx, dword [ebp - 0x824]
push eax
lea eax, [ebp - 0x818]
push eax
mov dword [ecx + 0xa0], edi
push dword [ebx + 0x30]
call fcn.00468320
mov eax, dword [0x4f7f30]
mov edi, dword [esi + 8]
add eax, 0x978
mov ebx, dword [esi + 4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [edi + 0x2c], 0
je 0x458d6d
mov eax, 1
jmp 0x458de8
mov ecx, 0x9c8
call fcn.00457ac0
mov esi, eax
mov dword [ebp - 0x820], 0
push str.Material
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x458de3
xor eax, eax
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x610], ax
lea ecx, [ebp - 0x820]
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.004871a0
mov dword [edi + 0x2c], esi
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xa8], eax
xor ecx, ebp
mov eax, dword [edi + 0x2c]
pop edi
mov dword [ebx + 0xa4], eax
mov eax, 1
pop esi
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret