Function at 0x1000ee60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004affe
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x10068224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2b0], ecx
jne 0x1000f075
push 0x208
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.10026b00
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x104
push eax
push dword [0x100695f0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x258]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x258]
push str.LDSBasic.dll
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000efaa
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x258]
push eax
call esi
push str.PluginBasic.tpi
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000efaa
call fcn.10018bc0
test eax, eax
je 0x1000efec
call fcn.10018bc0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000efec
call fcn.10018bc0
lea ecx, [ebp - 0x348]
mov edi, eax
call fcn.10005e20
mov esi, eax
push str.basic.tpi_not_find
push esi
mov dword [ebp - 4], 0
call fcn.10006b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x348]
mov dword [ebp - 4], 0xffffffff
call fcn.10006ca0
jmp 0x1000efec
lea eax, [ebp - 0x258]
push eax
call fcn.10014050
add esp, 4
test eax, eax
je 0x1000efec
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1000efec
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000efec
call eax
mov dword [ebx], eax
test eax, eax
je 0x1000efec
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
cmp dword [ebx], 0
jne 0x1000f06f
call fcn.10018bc0
test eax, eax
je 0x1000f04f
call fcn.10018bc0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f04f
call fcn.10018bc0
lea ecx, [ebp - 0x348]
mov edi, eax
call fcn.10005e20
mov esi, eax
push str.basic_init_fail
push esi
mov dword [ebp - 4], 1
call fcn.10006b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x348]
mov dword [ebp - 4], 0xffffffff
call fcn.10006ca0
push 0
push 0
push 1
push 0
push str.basic_f
call fcn.10007500
mov ecx, eax
call fcn.10015ed0
xor ebx, ebx
jmp 0x1000f533
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0xf
mov byte [ebp - 0x288], 0
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 4], 2
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f0c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x270]
call fcn.10007b80
push 0x24
push str.5BAB6FAC_4283_4ebe_AE97_3CBCA9CA70B0
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 3
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0xf
mov byte [ebp - 0x2a0], 0
call fcn.10007b80
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.100148f0
mov edx, dword [ebp - 0x28c]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 3
sete al
mov byte [ebp - 0x2a5], al
cmp edx, 0x10
jb 0x1000f177
mov ecx, dword [ebp - 0x2a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f167
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f5b2
push edx
push ecx
call fcn.10019a17
mov al, byte [ebp - 0x2a5]
add esp, 8
test al, al
je 0x1000f214
call fcn.10018bc0
test eax, eax
je 0x1000f1d7
call fcn.10018bc0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f1d7
call fcn.10018bc0
lea ecx, [ebp - 0x348]
mov edi, eax
call fcn.10005e20
mov esi, eax
push str.decrypt_fail
push esi
mov byte [ebp - 4], 5
call fcn.10006b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 3
call fcn.10006ca0
push 0
push 0
push 1
push 0
push str.decrypt_f
call fcn.10007500
mov ecx, eax
call fcn.10015ed0
lea ecx, [ebp - 0x270]
call fcn.10006660
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], 0xffffffff
call fcn.10006660
xor ebx, ebx
jmp 0x1000f533
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10026b00
mov ecx, dword [ebx]
lea esi, [ebp - 0x2ac]
add esp, 0xc
mov dword [ebp - 0x2ac], 0x40
cmp dword [ebp - 0x274], 0x10
lea edx, [ebp - 0x288]
cmovae edx, dword [ebp - 0x288]
mov eax, dword [ecx]
push esi
lea esi, [ebp - 0x50]
push esi
push dword [ebp - 0x278]
push edx
call dword [eax + 8]
test eax, eax
jg 0x1000f2f8
call fcn.10018bc0
test eax, eax
je 0x1000f2bb
call fcn.10018bc0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f2bb
call fcn.10018bc0
lea ecx, [ebp - 0x348]
mov edi, eax
call fcn.10005e20
mov esi, eax
push str.script_no_return_valua
push esi
mov byte [ebp - 4], 6
call fcn.10006b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 3
call fcn.10006ca0
push 0
push 0
push 1
push 0
push str.script_f
call fcn.10007500
mov ecx, eax
call fcn.10015ed0
lea ecx, [ebp - 0x270]
call fcn.10006660
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], 0xffffffff
call fcn.10006660
xor ebx, ebx
jmp 0x1000f533
call fcn.10003e90
mov ecx, eax
test ecx, ecx
je 0x1000f5b7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a4], esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 7
mov ebx, 1
test eax, 0xffff0000
jne 0x1000f3f2
movzx edi, ax
push 0
push edi
call fcn.1000d480
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000f3dc
mov ecx, edi
shr ecx, 4
push 6
inc ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000f3dc
push edi
push eax
push ebx
call fcn.10004bd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1000f3dc
movzx ecx, word [ebx]
lea eax, [ebx + 2]
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x1000f5c1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1000f3b4
push edi
lea ecx, [ebp - 0x2a4]
call fcn.1000edc0
mov esi, dword [ebp - 0x2a4]
movzx eax, word [ebx]
push 0
push 0
push edi
push esi
push eax
lea eax, [ebx + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, dword [esi - 8]
jg 0x1000f5c1
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ebx, 1
mov edi, dword [esi - 0xc]
mov byte [ebp - 4], 8
test edi, edi
js 0x1000f5cb
jmp 0x1000f419
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f3f8
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x2a4]
call fcn.1000f5e0
mov esi, dword [ebp - 0x2a4]
jmp 0x1000f3e1
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or eax, ebx
jge 0x1000f437
push edi
lea ecx, [ebp - 0x2a4]
call fcn.1000edc0
mov esi, dword [ebp - 0x2a4]
lea eax, [edi + 1]
push eax
push esi
call fcn.10035177
push eax
call fcn.10003b70
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x1000f5c1
push 0x10050050
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], 0
call fcn.10035068
add esp, 8
test eax, eax
jne 0x1000f478
mov eax, dword [ebp - 0x2b0]
mov dword [eax], 1
mov ebx, 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000f499
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1000f4d7
mov ecx, dword [ebp - 0x270]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f4cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f5d5
push edx
push ecx
call fcn.10019a17
add esp, 8
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1000f533
mov ecx, dword [ebp - 0x288]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f529
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f5da
push edx
push ecx
call fcn.10019a17
add esp, 8
call fcn.10018bc0
test eax, eax
je 0x1000f592
call fcn.10018bc0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f592
call fcn.10018bc0
lea ecx, [ebp - 0x3e0]
mov edi, eax
call fcn.10005e20
mov esi, eax
push str.act_result:
push esi
mov dword [ebp - 4], 9
call fcn.10006b70
add esp, 8
mov ecx, esi
push ebx
call fcn.1000c7d0
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x3e0]
call fcn.10006ca0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019d88
mov esp, ebp
pop ebp
ret 8
call fcn.10029a79
push 0x80004005
call fcn.10003c10
push 0x80070057
call fcn.10003c10
push 0x80070057
call fcn.10003c10
call fcn.10029a79
call fcn.10029a79
int3