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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f4008]
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.004587e0
test eax, eax
jne 0x45abb8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495852
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [0x4fc0fc]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x45abed
mov eax, 1
jmp 0x45ad36
mov ecx, 0x9c7
call fcn.00459ad0
mov edi, eax
xor eax, eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x818]
push 0x4d9b18
push eax
lea eax, [ebp - 0x208]
push 0x4d4fd0
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 0x45ac76
push 0x4dc2d8
push 0x4dc2e0
lea eax, [ebp - 0x610]
push 0x4dc35c
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 0x45ad31
push edi
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x81c], 0
call fcn.0048b110
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.0048b2b0
push str.Plugin
lea eax, [ebp - 0x818]
mov dword [ebp - 0x820], 0
push eax
lea eax, [ebp - 0x208]
push 0x4d4fd0
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 0x45ad31
lea eax, [ebp - 0x208]
mov dword [ebp - 0x81c], 0
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.0048b110
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.0048b2b0
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.0046a820
mov eax, dword [0x4fc0fc]
mov edi, dword [esi + 8]
add eax, 0x9a0
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 0x45ad7d
mov eax, 1
jmp 0x45adf8
mov ecx, 0x9c8
call fcn.00459ad0
mov esi, eax
mov dword [ebp - 0x820], 0
push str.Material
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push 0x4d4fd0
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 0x45adf3
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.0048b540
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.00495852
mov esp, ebp
pop ebp
ret