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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10002c2e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [section..data]
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 dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push str.engine.dll
mov dword [ebp - 0x4c], ebx
call esi
mov edi, eax
test edi, edi
jne 0x10001338
push 0x10
push str.DLL_Load_Error
push str.Failed_to_get_handle_for_engine.dll
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10001964
push str.nwindow.dll
call esi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x1000135e
push 0x10
push str.DLL_Load_Error
push str.Failed_to_get_handle_for_nwindow.dll
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10001964
lea ecx, [ebp - 0x29]
mov byte [ebp - 0x29], 0
push ecx
lea eax, [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001a60
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push str.Bodyblock_patch_failed._Zonner_pidaras.
push eax
lea edx, [edi + 0x22e207]
mov ecx, ebx
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x100013d0
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100013c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100013c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
push str.skill777.dat
lea ecx, [ebp - 0x64]
call fcn.10001b60
cmp dword [ebp - 0x50], 0xf
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmova eax, dword [ebp - 0x64]
push eax
call esi
cmp eax, 0xffffffff
je 0x100013fe
test al, 0x10
jne 0x100013fe
mov bl, 1
jmp 0x10001400
xor bl, bl
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x10001436
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000142c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000142c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
test bl, bl
je 0x100014b8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x370037
push ecx
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x30], 0x37
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001a60
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x1c]
push str.Skillgrp_patch_failed._Zonner_pidaras.
push eax
lea edx, [edi + 0x59a4a2]
mov dword [ebp - 4], 1
mov ecx, ebx
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x100014bb
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100014ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100014ac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
jmp 0x100014bb
mov ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0xffcbeae9
push ecx
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x30], 0xff
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001a60
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push str.Fast_relog_patch_failed._Zonner_pidaras.
push eax
lea edx, [edi + 0x2acfb7]
mov ecx, ebx
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10001534
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1000152a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000152a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xdee9
push ecx
lea eax, [ebp - 0x32]
mov word [ebp - 0x34], 0x9000
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001a60
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push str.Special_camera_patch_failed._Zonner_pidaras.
push eax
lea edx, [edi + 0x192b5e]
mov ecx, ebx
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x100015af
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100015a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100015a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x90909090
push ecx
lea eax, [ebp - 0x2f]
mov dword [ebp - 0x38], 0x90909090
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], 0x90909090
mov byte [ebp - 0x30], 0x90
call fcn.10001a60
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x1c]
push str.Debuff_time_patch_failed._Zonner_pidaras.
push eax
mov ecx, ebx
mov dword [ebp - 4], 4
lea edx, [edi + 0x4dce7]
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10001639
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1000162f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000162f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xece9
push ecx
lea eax, [ebp - 0x32]
mov word [ebp - 0x34], 0x9000
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001a60
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 5
push str.Temporary_chat_blocking_fix_failed._Zonner_pidaras.
push eax
lea edx, [edi + 0x138895]
mov ecx, ebx
call fcn.10001170
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x100016b4
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100016aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100016aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
push str.inter7777.u
lea ecx, [ebp - 0x64]
call fcn.10001b60
mov dword [ebp - 4], 6
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 0xf
mov ebx, 1
mov dword [ebp - 0x48], ebx
cmova eax, dword [ebp - 0x64]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001714
test al, 0x10
jne 0x10001714
push str.inter7777.xdat
lea ecx, [ebp - 0x28]
call fcn.10001b60
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ebx, 3
cmova eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x10001714
mov byte [ebp - 0x29], 1
test al, 0x10
je 0x10001718
mov byte [ebp - 0x29], 0
test bl, 2
je 0x10001762
mov ecx, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp ecx, 0xf
jbe 0x10001750
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001746
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001794
push ecx
push edx
call fcn.10001e1a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x100017a4
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x100017a4
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000179a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000179a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001e1a
add esp, 8
cmp byte [ebp - 0x29], 0
je 0x10001964
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x64], 0x235fa2
sub eax, ecx
mov dword [ebp - 0x60], 0x245a42
xor edi, edi
mov dword [ebp - 0x44], eax
sar eax, 2
xorps xmm0, xmm0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
xor ecx, ecx
mov dword [ebp - 0x5c], 0x258e4a
xor esi, esi
mov dword [ebp - 0x58], 0x25b92a
mov dword [ebp - 0x54], 0x25bba6
mov dword [ebp - 0x50], 0x25bdc2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x1000188b
cmp eax, 0x3fffffff
ja 0x10001980
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x10001851
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10001985
push eax
call fcn.10001dea
add esp, 4
test eax, eax
je 0x100013c0
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10001864
test esi, esi
je 0x10001862
push esi
call fcn.10001dea
add esp, 4
mov edi, eax
jmp 0x10001864
xor edi, edi
push dword [ebp - 0x44]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x1c], edi
push eax
lea ebx, [edi + esi]
push edi
mov dword [ebp - 0x14], ebx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov esi, edi
lea ecx, [edi + eax*4]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 7
cmp esi, ecx
je 0x10001931
lea ecx, [ebp - 0x3d]
mov dword [ebp - 0x44], 0x370037
push ecx
push ecx
lea eax, [ebp - 0x44]
mov word [ebp - 0x40], 0x37
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3e], 0x37
call fcn.10001a60
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
mov edx, dword [esi]
add edx, dword [ebp - 0x68]
push str.Interface_patch_failed._Zonner_pidaras.
push eax
call fcn.10001170
mov byte [ebp - 4], 7
add esp, 8
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x10001926
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10001907
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100013c0
push ecx
push edx
call fcn.10001e1a
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
add esi, 4
cmp esi, dword [ebp - 0x48]
jmp 0x10001894
test edi, edi
je 0x10001964
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x1000195a
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000195a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.10001e1a
add esp, 8
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.10001ddc
mov esp, ebp
pop ebp
ret
call fcn.10001dd0
call fcn.100010c0
int3