Function at 0x100646c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013ff5f
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1019bc84]
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 edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
test edx, edx
je 0x100649fd
mov ecx, edx
lea edi, [eax + 8]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10064712
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000d5b0
push 0x10151d64
push 0x1015f5ac
mov ecx, edi
call fcn.1002ffd0
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x10064756
lea eax, [ecx - 0x10]
push eax
call fcn.1000c300
add esp, 4
add eax, 0x10
jmp 0x1006478f
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x10064766
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10064772
call fcn.1000ca70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.100104b0
mov eax, dword [ebp - 0x220]
mov edx, 0x10151d64
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100647bc
test si, si
je 0x100647b8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100647bc
add ecx, 4
add edx, 4
test si, si
jne 0x10064796
xor esi, esi
jmp 0x100647c1
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100647d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 8
test esi, esi
jne 0x1006487c
mov edx, dword [edi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x1006480e
lea eax, [edx - 0x10]
push eax
call fcn.1000c300
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
jmp 0x1006483f
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x1006481e
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1006482a
call fcn.1000ca70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [edi]
lea ecx, [ebp - 0x220]
call fcn.100104b0
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1001cb00
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ebx, 0x18
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006487f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1006487f
or esi, 0xffffffff
push edi
call fcn.10011920
add esp, 4
test eax, eax
jne 0x100649fd
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100e3030
mov ecx, dword [ebp - 0x224]
add esp, 0xc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x100648c4
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 0x104
push edx
push ecx
call dword [eax + 0x18]
push 0x1015f5b0
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1000ba50
add esp, 0xc
push dword [eax]
or ebx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10064962
push str.ComputerZ_CN.exe
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1000ba50
add esp, 0xc
push dword [eax]
or ebx, 2
mov dword [ebp - 4], 2
mov dword [ebp - 0x220], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10064962
push str.lds_setup.log
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.1000ba50
add esp, 0xc
or ebx, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10064962
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x219], 0
test eax, eax
je 0x10064969
mov byte [ebp - 0x219], 1
test bl, 4
je 0x10064994
mov edx, dword [ebp - 0x224]
and ebx, 0xfffffffb
mov dword [ebp - 0x220], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10064994
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 2
je 0x100649c6
mov edx, dword [ebp - 0x228]
and ebx, 0xfffffffd
mov dword [ebp - 0x220], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100649c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100649e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
jne 0x100649fd
push str.LuDaShi
mov ecx, edi
call fcn.1004dc00
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.1009de58
mov esp, ebp
pop ebp
ret 8