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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f3008]
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.00457dd0
test eax, eax
jne 0x45a3d8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [0x4fb114]
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 0x45a40d
mov eax, 1
jmp 0x45a56e
mov ecx, 0x9c7
call fcn.00459100
mov edi, eax
xor eax, eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x818]
push 0x4d92dc
push eax
lea eax, [ebp - 0x208]
push 0x4d4c98
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 0x45a4ae
mov ecx, dword [0x4fb118]
push 0x4dba24
push 0x7fd
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x610]
push str._s_n_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x4fb118]
add esp, 0x14
mov eax, dword [ecx]
push 0x30
push 0x7fc
call dword [eax + 4]
push eax
lea eax, [ebp - 0x610]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x45a569
push edi
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x81c], 0
call fcn.0048a530
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.0048a6d0
push str.Plugin
lea eax, [ebp - 0x818]
mov dword [ebp - 0x820], 0
push eax
lea eax, [ebp - 0x208]
push 0x4d4c98
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 0x45a569
lea eax, [ebp - 0x208]
mov dword [ebp - 0x81c], 0
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.0048a530
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.0048a6d0
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.0046a0e0
mov eax, dword [0x4fb114]
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 0x45a5b5
mov eax, 1
jmp 0x45a630
mov ecx, 0x9c8
call fcn.00459100
mov esi, eax
mov dword [ebp - 0x820], 0
push str.Material
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push 0x4d4c98
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 0x45a62b
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.0048a960
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.004954a2
mov esp, ebp
pop ebp
ret