Function at 0x40c8b0
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 0x5c6ecc
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_YEBAOJIASUQI_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 0x40c9b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c9b3
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0048fce0
add esp, 0xc
lea eax, [ebp - 0x118]
push str.setup_is_running_n
push 0xff
push eax
call fcn.00421d00
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 0x40c993
push eax
call edi
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40cb86
push eax
call edi
mov dword [esi + 0xd4], 0
jmp 0x40cb86
push str.3CB03402_07A2_7E6D_C2D8_8A95CF2559F9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xd4], eax
test eax, eax
je 0x40cba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cba1
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0048fce0
add esp, 0xc
lea eax, [ebp - 0x118]
push str.client_is_running_n
push 0xff
push eax
call fcn.00421d00
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 0x40ca3a
push eax
call edi
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40ca51
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.2767E8A4_4361_4B00_8AE4_CBD8F1108DA7
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.004027e0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1ec], 0
call fcn.00402580
lea eax, [ebp - 0x1ec]
push eax
push 0x40c500
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x1d4]
mov esi, dword [ebp - 0x1ec]
cmp ecx, 7
jbe 0x40cb22
mov edx, dword [ebp - 0x1e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d585
push ecx
push edx
call fcn.004392c8
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 0x40cb7f
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d585
push ecx
push edx
call fcn.004392c8
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 0x40d547
lea eax, [ebp - 0x130]
push eax
call fcn.00414420
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.004056c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x11c]
cmp ecx, 7
jbe 0x40cc02
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cbf8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d58a
push ecx
push edx
call fcn.004392c8
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.00413910
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1fc]
cmp dword [eax + 0x10], 0
je 0x40cc4f
push 1
push 0x645e04
mov ecx, eax
call fcn.00409e30
mov eax, dword [ebp - 0x1fc]
push 0xa
push str._launcher
mov ecx, eax
call fcn.00409e30
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.00409e30
mov eax, dword [ebp - 0x1fc]
cmp dword [eax + 0x10], 0
je 0x40cca3
push 1
push 0x645e04
mov ecx, eax
call fcn.00409e30
mov eax, dword [ebp - 0x1fc]
push 9
push str._install
mov ecx, eax
call fcn.00409e30
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.00409e30
lea eax, [esi + 0xa8]
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40cd0b
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.00404660
mov ecx, dword [ebp - 0x1ac]
test ecx, ecx
je 0x40cd39
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 0x40cd6a
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.00402580
push edi
mov ecx, esi
call fcn.00414c60
test al, al
je 0x40cdc9
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d4a7
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 0x40d4a7
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40cdfa
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.00405290
cmp dword [ebp - 0x120], 0
mov edx, 0x5c
mov dword [ebp - 0x200], 0x200
jbe 0x40ce44
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40ce2d
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp dx, word [ecx + eax*2 - 2]
je 0x40ce44
push 0x5c
lea ecx, [ebp - 0x130]
call fcn.00409b90
push 0x10
push str.YbSetupInfo.json
lea ecx, [ebp - 0x130]
call fcn.00409e30
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 0x40cece
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cec4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d58f
push ecx
push edx
call fcn.004392c8
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 0x40d594
cmp ecx, 7
ja 0x40cf4d
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
jmp 0x40cfb3
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40cf5f
mov ecx, bind
jmp 0x40cf69
mov edx, 0xa
cmp ecx, edx
cmovb ecx, edx
mov dword [ebp - 0x1fc], ecx
lea ecx, [ebp - 0x1fc]
push ecx
push eax
call fcn.004029e0
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.0048f690
add esp, 0x14
push edi
mov ecx, esi
call fcn.004160f0
test al, al
je 0x40cfe3
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
push 0x64
push 0
mov ecx, esi
call fcn.004138e0
lea ecx, [ebp - 0x148]
call fcn.004024d0
jmp 0x40d4a7
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x134]
cmp eax, 7
jbe 0x40d033
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x148]
mov edx, eax
cmp ecx, 0x1000
jb 0x40d029
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x1f4], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40d599
mov eax, dword [ebp - 0x1f4]
push ecx
push eax
call fcn.004392c8
add esp, 8
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x40d064
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.00405290
cmp dword [ebp - 0x120], 0
mov dword [ebp - 0x200], 0x500
jbe 0x40d0b1
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [edi + 0x18]
call fcn.00409e00
mov ecx, 0x5c
mov eax, dword [eax]
cmp cx, word [eax - 2]
je 0x40d0b1
push ecx
lea ecx, [ebp - 0x130]
call fcn.00409b90
push str.configclient.txt
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xc
call fcn.004024d0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x178]
call fcn.004056c0
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x130]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.004024d0
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402580
sub esp, 0x18
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x148]
mov ecx, esp
push eax
call fcn.00402580
push edi
mov byte [ebp - 4], 0xf
call fcn.004174f0
test al, al
je 0x40d178
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
push 0x64
push 0
mov ecx, esi
call fcn.004138e0
lea ecx, [ebp - 0x130]
call fcn.004024d0
lea ecx, [ebp - 0x148]
call fcn.004024d0
jmp 0x40d4a7
lea ecx, [ebp - 0x130]
call fcn.004024d0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.004024d0
push 0x46
push 0
mov ecx, esi
call fcn.004138e0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x148]
call fcn.004056c0
push str.configclient.bin
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x178]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x13
call fcn.004024d0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1a8]
call fcn.004056c0
push str.configclient.txt
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x130]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x16
call fcn.004024d0
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402580
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x178]
mov ecx, esp
push eax
call fcn.00402580
mov byte [ebp - 4], 0x16
call fcn.00417190
test al, al
je 0x40d2fb
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.004056c0
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x148]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x1a
call fcn.004024d0
sub esp, 0x18
lea eax, [ebp - 0x148]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402580
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x130]
mov ecx, esp
push eax
call fcn.00402580
push edi
mov byte [ebp - 4], 0x1a
call fcn.004174f0
test al, al
je 0x40d2f0
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
push 0x64
push 0
mov ecx, esi
call fcn.004138e0
lea ecx, [ebp - 0x148]
call fcn.004024d0
lea ecx, [ebp - 0x130]
call fcn.004024d0
lea ecx, [ebp - 0x178]
call fcn.004024d0
jmp 0x40d4a7
lea ecx, [ebp - 0x148]
call fcn.004024d0
lea ecx, [ebp - 0x130]
call fcn.004024d0
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 5
call fcn.004024d0
push 0x50
push 0
mov ecx, esi
call fcn.004138e0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.004056c0
push str.configclient.json
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x148]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x1e
call fcn.004024d0
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1a8]
call fcn.004056c0
push str.configclient.txt
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x130]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x21
call fcn.004024d0
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402580
sub esp, 0x18
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x148]
mov ecx, esp
push eax
call fcn.00402580
mov byte [ebp - 4], 0x21
call fcn.00417340
test al, al
je 0x40d468
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x1e8]
call fcn.004056c0
push str.configcache.json
mov edx, eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x178]
call fcn.00409fb0
add esp, 4
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0x25
call fcn.004024d0
sub esp, 0x18
lea eax, [ebp - 0x178]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push eax
call fcn.00402580
sub esp, 0x18
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x130]
mov ecx, esp
push eax
call fcn.00402580
push edi
mov byte [ebp - 4], 0x25
call fcn.004174f0
test al, al
je 0x40d45d
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
push 0x64
push 0
mov ecx, esi
call fcn.004138e0
lea ecx, [ebp - 0x178]
call fcn.004024d0
jmp 0x40d15d
lea ecx, [ebp - 0x178]
call fcn.004024d0
lea ecx, [ebp - 0x130]
call fcn.004024d0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 5
call fcn.004024d0
push 0x5a
push 0
mov ecx, esi
call fcn.004138e0
push edi
call fcn.00418990
push edi
lea ecx, [esi + 8]
call fcn.00403ab0
push 0x64
push 0
mov ecx, esi
call fcn.004138e0
mov ecx, dword [ebp - 0x17c]
mov byte [ebp - 0x1ed], 1
cmp ecx, 7
jbe 0x40d4ee
mov edx, dword [ebp - 0x190]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d599
push ecx
push edx
call fcn.004392c8
add esp, 8
mov ecx, dword [ebp - 0x14c]
cmp ecx, 7
jbe 0x40d52a
mov edx, dword [ebp - 0x160]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d520
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d599
push ecx
push edx
call fcn.004392c8
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 0x40d55f
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.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
call fcn.0049452a
call fcn.0049452a
call fcn.0049452a
call fcn.004012e0
call fcn.0049452a
int3