Function at 0x1000a080
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x10020a38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100280f0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
cmp dword [ebp + 0x230], 0x101
mov dword [ebp - 4], esi
jne 0x1000a57c
push 0x206
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.1000f430
add esp, 0xc
push 0x104
lea ecx, [ebp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1000a57c
lea ebx, [ebp + 0x1c]
lea esi, [ebp - 0x18]
call fcn.10007f80
mov byte [ebp - 4], 1
mov esi, 6
mov edx, esi
sub esi, 1
test edx, edx
jle 0x1000a14e
mov eax, dword [ebp - 0x18]
push 0x5c
push eax
call fcn.1000e49c
add esp, 8
test eax, eax
je 0x1000a14e
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x1000a14e
mov ecx, dword [ecx - 8]
cmp ecx, eax
jle 0x1000a14e
sub ecx, eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.10007d20
jmp 0x1000a113
mov ecx, dword [0x10031744]
mov edx, 0x10024c3c
shr edx, 0x10
mov dword [ebp - 0x14], ecx
jne 0x1000a173
mov eax, 0x10024c3c
movzx ecx, ax
lea edx, [ebp - 0x14]
call fcn.10007fe0
jmp 0x1000a1b1
push 0x10024c3c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x1000a1b1
mov ecx, esi
lea edx, [ebp - 0x14]
call fcn.10007be0
test eax, eax
je 0x1000a1b1
mov ecx, dword [ebp - 0x14]
lea eax, [esi + esi]
push eax
push 0x10024c3c
add eax, 2
push eax
push ecx
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10007e10
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, 0x10031734
je 0x1000a1f0
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x1000a1f0
push esi
call fcn.1000e356
add esp, 4
mov edx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call ebx
test eax, eax
je 0x1000a258
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a227
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a227
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a24e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a24e
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, 2
jmp 0x1000a57e
mov eax, dword [0x10031744]
mov ecx, str.TCLSconfigdirserver.xml
shr ecx, 0x10
mov dword [ebp - 0x14], eax
jne 0x1000a27c
mov edx, str.TCLSconfigdirserver.xml
movzx ecx, dx
lea edx, [ebp - 0x14]
call fcn.10007fe0
jmp 0x1000a2ba
push str.TCLSconfigdirserver.xml
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x1000a2ba
mov ecx, esi
lea edx, [ebp - 0x14]
call fcn.10007be0
test eax, eax
je 0x1000a2ba
lea eax, [esi + esi]
push eax
add eax, 2
push str.TCLSconfigdirserver.xml
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10007e10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, 0x10031734
je 0x1000a2f5
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x1000a2f5
push esi
call fcn.1000e356
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call ebx
test eax, eax
mov ebx, 0xf
je 0x1000a395
push 0x1b
xor esi, esi
push str.host_tdir_test.lol.qq.com_
lea ecx, [ebp]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp + 4], 0
call fcn.10001780
lea edx, [ebp]
push edx
lea eax, [ebp - 0x20]
call fcn.1000a5b0
test al, al
je 0x1000a383
cmp dword [ebp + 0x18], 0x10
jb 0x1000a345
mov eax, dword [ebp + 4]
push eax
call fcn.1000dcfa
add esp, 4
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp + 4], 0
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a200
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a200
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
jmp 0x1000a200
cmp dword [ebp + 0x18], 0x10
jb 0x1000a395
mov eax, dword [ebp + 4]
push eax
call fcn.1000dcfa
add esp, 4
mov ecx, dword [0x10031744]
mov edx, str.TCLSconfigVersionServerConfig.xml
shr edx, 0x10
mov dword [ebp - 0x14], ecx
jne 0x1000a3ba
mov eax, str.TCLSconfigVersionServerConfig.xml
movzx ecx, ax
lea edx, [ebp - 0x14]
call fcn.10007fe0
jmp 0x1000a3f8
push str.TCLSconfigVersionServerConfig.xml
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x1000a3f8
mov ecx, esi
lea edx, [ebp - 0x14]
call fcn.10007be0
test eax, eax
je 0x1000a3f8
mov ecx, dword [ebp - 0x14]
lea eax, [esi + esi]
push eax
push str.TCLSconfigVersionServerConfig.xml
add eax, 2
push eax
push ecx
call fcn.1000ded5
push eax
call fcn.10007c80
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10007e10
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
cmp ecx, 0x10031734
je 0x1000a434
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x1000a434
push esi
call fcn.1000e356
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a4d3
push 0x1f
xor esi, esi
push str.host_tversion_test.lol.qq.com_
lea ecx, [ebp]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp + 4], 0
call fcn.10001780
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
call fcn.1000a5b0
test al, al
je 0x1000a4c1
cmp dword [ebp + 0x18], 0x10
jb 0x1000a483
mov ecx, dword [ebp + 4]
push ecx
call fcn.1000dcfa
add esp, 4
mov eax, dword [ebp - 0x24]
lea edx, [eax - 0xc]
cmp edx, 0x10031734
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], esi
mov byte [ebp + 4], 0
je 0x1000a34f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a34f
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
push eax
call fcn.1000e356
add esp, 4
jmp 0x1000a34f
cmp dword [ebp + 0x18], 0x10
jb 0x1000a4d3
mov eax, dword [ebp + 4]
push eax
call fcn.1000dcfa
add esp, 4
mov eax, dword [ebp - 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a4fa
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a4fa
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a521
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a521
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a548
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a548
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x10031734
je 0x1000a56f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1000a56f
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.1000e356
add esp, 4
mov eax, 1
jmp 0x1000a57e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.1000dec6
add ebp, 0x228
mov esp, ebp
pop ebp
ret 4