Function at 0x40ccc0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Enumerate gui resources
Print debug messages
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c751c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f0
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x200], 0
push str.MUTEX_TMJIASUQI_INSTALL_CLIENT_TOOL
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xd0], eax
test eax, eax
je 0x40cdc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cdc3
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
lea eax, [ebp - 0x118]
push str.setup_is_running_n
push 0xff
push eax
call fcn.00422380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xd0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40cda3
push eax
call edi
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40cf96
push eax
call edi
mov dword [esi + 0xd4], 0
jmp 0x40cf96
push str.79F6FE60_2F8F_4D06_A4AC_158519F02F53
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xd4], eax
test eax, eax
je 0x40cfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cfb1
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
lea eax, [ebp - 0x118]
push str.client_is_running_n
push 0xff
push eax
call fcn.00422380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xd0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40ce4a
push eax
call edi
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40ce61
push eax
call edi
mov dword [esi + 0xd4], 0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x100
push eax
push 0
push 0x4a
push 0x26
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
push str.AFD92106_8F92_4276_AD53_4840F813B4F3
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x134], 0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.00402780
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1ec], 0
call fcn.00402520
lea eax, [ebp - 0x1ec]
push eax
push 0x40c910
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x1d4]
mov esi, dword [ebp - 0x1ec]
cmp ecx, 7
jbe 0x40cf32
mov edx, dword [ebp - 0x1e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d995
push ecx
push edx
call fcn.00439938
add esp, 8
mov ecx, dword [ebp - 0x11c]
xor eax, eax
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 7
mov word [ebp - 0x1e8], ax
cmp ecx, 7
jbe 0x40cf8f
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d995
push ecx
push edx
call fcn.00439938
add esp, 8
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 0x1ed], 0
jmp 0x40d957
lea eax, [ebp - 0x130]
push eax
call fcn.00414ad0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.00405630
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x11c]
cmp ecx, 7
jbe 0x40d012
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d008
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d99a
push ecx
push edx
call fcn.00439938
add esp, 8
xor eax, eax
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x11c], 7
call fcn.00413be0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1fc]
cmp dword [eax + 0x10], 0
je 0x40d05f
push 1
push 0x645e04
mov ecx, eax
call fcn.0040a240
mov eax, dword [ebp - 0x1fc]
push 0xa
push str._launcher
mov ecx, eax
call fcn.0040a240
cmp dword [ebp - 0x14c], 7
lea eax, [ebp - 0x160]
push dword [ebp - 0x150]
cmova eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x1fc]
push eax
call fcn.0040a240
mov eax, dword [ebp - 0x1fc]
cmp dword [eax + 0x10], 0
je 0x40d0b3
push 1
push 0x645e04
mov ecx, eax
call fcn.0040a240
mov eax, dword [ebp - 0x1fc]
push 9
push str._install
mov ecx, eax
call fcn.0040a240
cmp dword [ebp - 0x17c], 7
lea eax, [ebp - 0x190]
push dword [ebp - 0x180]
cmova eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x1fc]
push eax
call fcn.0040a240
lea eax, [esi + 0xa8]
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40d11b
mov eax, dword [ecx]
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x1ac], eax
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 5
call fcn.004045d0
mov ecx, dword [ebp - 0x1ac]
test ecx, ecx
je 0x40d149
mov edx, dword [ecx]
lea eax, [ebp - 0x1d0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d17a
lea edx, [ebp - 0x1f8]
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1f4]
push edx
call dword [eax + 8]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1fc]
call fcn.00402520
push edi
mov ecx, esi
call fcn.00415310
test al, al
je 0x40d1d9
push edi
lea ecx, [esi + 8]
call fcn.00403a50
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d8b7
lea edx, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x64
mov dword [ebp - 0x1f8], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1f8]
push edx
call dword [eax + 8]
jmp 0x40d8b7
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d20a
lea edx, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x28
mov dword [ebp - 0x1f8], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1f8]
push edx
call dword [eax + 8]
mov edx, edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x130]
call fcn.00405200
cmp dword [ebp - 0x120], 0
mov edx, 0x5c
mov dword [ebp - 0x200], 0x200
jbe 0x40d254
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40d23d
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp dx, word [ecx + eax*2 - 2]
je 0x40d254
push 0x5c
lea ecx, [ebp - 0x130]
call fcn.00409fa0
push 0x10
push str.TMSetupInfo.json
lea ecx, [ebp - 0x130]
call fcn.0040a240
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x200], 0x100
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x11c]
cmp ecx, 7
jbe 0x40d2de
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d2d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d99f
push ecx
push edx
call fcn.00439938
add esp, 8
mov ecx, dword [ebp - 0x138]
lea edx, [ebp - 0x148]
xor eax, eax
mov dword [ebp - 0x120], 0
sub esp, 0x18
mov word [ebp - 0x130], ax
cmp dword [ebp - 0x134], 7
mov eax, esp
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 7
cmova edx, dword [ebp - 0x148]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
cmp ecx, 0x7ffffffe
ja 0x40d9a4
cmp ecx, 7
ja 0x40d35d
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
jmp 0x40d3c3
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40d36f
mov ecx, bind
jmp 0x40d379
mov edx, 0xa
cmp ecx, edx
cmovb ecx, edx
mov dword [ebp - 0x1fc], ecx
lea ecx, [ebp - 0x1fc]
push ecx
push eax
call fcn.00402980
mov edx, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x138]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x1fc]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x138]
mov dword [edx], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x1f8]
push eax
call fcn.0048fd10
add esp, 0x14
push edi
mov ecx, esi
call fcn.004167a0
test al, al
je 0x40d3f3
push edi
lea ecx, [esi + 8]
call fcn.00403a50
push 0x64
push 0
mov ecx, esi
call fcn.00413bb0
lea ecx, [ebp - 0x148]
call fcn.00402470
jmp 0x40d8b7
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x134]
cmp eax, 7
jbe 0x40d443
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x148]
mov edx, eax
cmp ecx, 0x1000
jb 0x40d439
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x1f4], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40d9a9
mov eax, dword [ebp - 0x1f4]
push ecx
push eax
call fcn.00439938
add esp, 8
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d474
lea edx, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x3c
mov dword [ebp - 0x1f8], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1f8]
push edx
call dword [eax + 8]
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xa
call fcn.00405200
cmp dword [ebp - 0x120], 0
mov dword [ebp - 0x200], 0x500
jbe 0x40d4c1
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [edi + 0x18]
call fcn.0040a210
mov ecx, 0x5c
mov eax, dword [eax]
cmp cx, word [eax - 2]
je 0x40d4c1
push ecx
lea ecx, [ebp - 0x130]
call fcn.00409fa0
push str.configclient.txt
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xc
call fcn.00402470
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x178]
call fcn.00405630
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x130]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.00402470
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402520
sub esp, 0x18
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x148]
mov ecx, esp
push eax
call fcn.00402520
push edi
mov byte [ebp - 4], 0xf
call fcn.00417ba0
test al, al
je 0x40d588
push edi
lea ecx, [esi + 8]
call fcn.00403a50
push 0x64
push 0
mov ecx, esi
call fcn.00413bb0
lea ecx, [ebp - 0x130]
call fcn.00402470
lea ecx, [ebp - 0x148]
call fcn.00402470
jmp 0x40d8b7
lea ecx, [ebp - 0x130]
call fcn.00402470
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.00402470
push 0x46
push 0
mov ecx, esi
call fcn.00413bb0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x148]
call fcn.00405630
push str.configclient.bin
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x178]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x13
call fcn.00402470
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1a8]
call fcn.00405630
push str.configclient.txt
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x130]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x16
call fcn.00402470
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402520
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x178]
mov ecx, esp
push eax
call fcn.00402520
mov byte [ebp - 4], 0x16
call fcn.00417840
test al, al
je 0x40d70b
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.00405630
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x148]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x1a
call fcn.00402470
sub esp, 0x18
lea eax, [ebp - 0x148]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402520
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x130]
mov ecx, esp
push eax
call fcn.00402520
push edi
mov byte [ebp - 4], 0x1a
call fcn.00417ba0
test al, al
je 0x40d700
push edi
lea ecx, [esi + 8]
call fcn.00403a50
push 0x64
push 0
mov ecx, esi
call fcn.00413bb0
lea ecx, [ebp - 0x148]
call fcn.00402470
lea ecx, [ebp - 0x130]
call fcn.00402470
lea ecx, [ebp - 0x178]
call fcn.00402470
jmp 0x40d8b7
lea ecx, [ebp - 0x148]
call fcn.00402470
lea ecx, [ebp - 0x130]
call fcn.00402470
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 5
call fcn.00402470
push 0x50
push 0
mov ecx, esi
call fcn.00413bb0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.00405630
push str.configclient.json
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x148]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x1e
call fcn.00402470
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1a8]
call fcn.00405630
push str.configclient.txt
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x130]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x21
call fcn.00402470
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402520
sub esp, 0x18
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x148]
mov ecx, esp
push eax
call fcn.00402520
mov byte [ebp - 4], 0x21
call fcn.004179f0
test al, al
je 0x40d878
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.00405630
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x178]
call fcn.0040a3c0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x25
call fcn.00402470
sub esp, 0x18
lea eax, [ebp - 0x178]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402520
sub esp, 0x18
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x130]
mov ecx, esp
push eax
call fcn.00402520
push edi
mov byte [ebp - 4], 0x25
call fcn.00417ba0
test al, al
je 0x40d86d
push edi
lea ecx, [esi + 8]
call fcn.00403a50
push 0x64
push 0
mov ecx, esi
call fcn.00413bb0
lea ecx, [ebp - 0x178]
call fcn.00402470
jmp 0x40d56d
lea ecx, [ebp - 0x178]
call fcn.00402470
lea ecx, [ebp - 0x130]
call fcn.00402470
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.00402470
push 0x5a
push 0
mov ecx, esi
call fcn.00413bb0
push edi
call fcn.00419040
push edi
lea ecx, [esi + 8]
call fcn.00403a50
push 0x64
push 0
mov ecx, esi
call fcn.00413bb0
mov ecx, dword [ebp - 0x17c]
mov byte [ebp - 0x1ed], 1
cmp ecx, 7
jbe 0x40d8fe
mov edx, dword [ebp - 0x190]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d8f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9a9
push ecx
push edx
call fcn.00439938
add esp, 8
mov ecx, dword [ebp - 0x14c]
cmp ecx, 7
jbe 0x40d93a
mov edx, dword [ebp - 0x160]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d930
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9a9
push ecx
push edx
call fcn.00439938
add esp, 8
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40d96f
mov esi, dword [ecx]
lea eax, [ebx + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x1ed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.00494baa
call fcn.00494baa
call fcn.00494baa
call fcn.004012e0
call fcn.00494baa
int3