Function at 0x40c3e0
Capabilities:
Create process on windows
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55205c
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5a0800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
push str.windowinit
call fcn.00411e30
test al, al
je 0x40c42f
lea ecx, [esi - 0x20]
call fcn.0040ce90
jmp 0x40c8d1
push str.click
mov ecx, edi
call fcn.00411e30
test al, al
je 0x40c8f6
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x2cc]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 0
call fcn.00412720
push eax
push str.click
push str._XIMAO__s:_s_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00411760
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0x108]
cmp eax, dword [esi + 0x500]
je 0x40c4cc
cmp eax, dword [esi + 0x504]
je 0x40c4f0
cmp eax, dword [esi + 0x548]
je 0x40c4cc
cmp eax, dword [esi + 0x508]
jne 0x40c4dc
cmp byte [esi + 0x49c], 0
je 0x40c4cc
push 2
lea ecx, [esi - 0x20]
call fcn.00409ee0
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp eax, dword [esi + 0x50c]
jne 0x40c4e8
push 0
jmp 0x40c4c4
cmp eax, dword [esi + 0x510]
jne 0x40c4f4
push 1
jmp 0x40c4c4
cmp eax, dword [esi + 0x514]
jne 0x40c5f2
push 1
lea ecx, [esi - 0x20]
call fcn.0040de20
test al, al
jne 0x40c539
push 0x10
push 0x55cb2c
push 0x55d000
lea ecx, [esi - 0x20]
call fcn.0041bd60
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
push 0x50
call fcn.004e6c7e
mov edi, eax
add esp, 4
test edi, edi
je 0x40c58a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
movups xmmword [edi + 0x38], xmm0
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
jmp 0x40c58c
xor edi, edi
lea eax, [esi - 0x20]
mov ecx, eax
mov dword [edi], eax
call fcn.0041bd60
mov dword [edi + 4], eax
lea ecx, [edi + 8]
lea eax, [esi + 0x4b8]
push eax
call fcn.004099d0
lea eax, [esi + 0x4a0]
push eax
lea ecx, [edi + 0x20]
call fcn.004099d0
lea eax, [esi + 0x4d0]
push eax
lea ecx, [edi + 0x38]
call fcn.004099d0
lea eax, [ebp - 0x354]
mov dword [ebp - 0x354], 0
push eax
push 0
push edi
push 0x40a570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 3
jmp 0x40c4c4
cmp eax, dword [esi + 0x518]
jne 0x40c6e8
lea edi, [esi + 0x4d0]
push edi
lea ecx, [ebp - 0x230]
call fcn.00408620
push 0x5c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00409be0
push 0x55cf08
lea ecx, [ebp - 0x230]
call fcn.00409bb0
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
call fcn.0040aea0
add esp, 4
test eax, eax
jne 0x40c679
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._XIMAO__uiStartGame_ExistFile_fail_r_n
call eax
lea ecx, [ebp - 0x230]
call fcn.00409100
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp dword [edi + 0x14], 7
jbe 0x40c681
mov edi, dword [edi]
push 1
push edi
push 0
push 0x55cf08
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push eax
push str.ShellExecute
push str._XIMAO__s:_u_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00411760
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
lea ecx, [esi - 0x20]
call fcn.0040dcc0
lea ecx, [ebp - 0x230]
call fcn.00409100
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp eax, dword [esi + 0x51c]
jne 0x40c708
lea ecx, [esi - 0x20]
call fcn.0040dcc0
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp eax, dword [esi + 0x520]
jne 0x40c80a
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
movups xmmword [ebp - 0x230], xmm0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi - 0x20]
call fcn.0040e050
test al, al
je 0x40c774
mov ecx, dword [esi + 0x528]
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 7
cmova edx, dword [ebp - 0x230]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
jmp 0x40c7ac
lea eax, [ebp - 0x248]
push eax
call fcn.0040b510
add esp, 4
mov edx, eax
cmp dword [edx + 0x14], 7
mov byte [ebp - 4], 3
jbe 0x40c791
mov edx, dword [edx]
mov ecx, dword [esi + 0x528]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00409100
push 0
lea ecx, [esi - 0x20]
call fcn.0040de20
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x40c4cc
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c7f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9b3
push ecx
push edx
call fcn.004e6cae
add esp, 8
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
mov ecx, dword [esi + 0x524]
cmp eax, ecx
jne 0x40c842
call fcn.004231e0
mov ecx, dword [esi + 0x508]
xor al, 1
mov dl, al
mov byte [esi + 0x49c], dl
push edx
mov eax, dword [ecx]
call dword [eax + 0xec]
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp eax, dword [esi + 0x52c]
je 0x40c4cc
cmp eax, dword [esi + 0x530]
je 0x40c4cc
cmp eax, dword [esi + 0x534]
je 0x40c4cc
cmp eax, dword [esi + 0x54c]
je 0x40c4cc
cmp eax, dword [esi + 0x554]
je 0x40c4cc
cmp eax, dword [esi + 0x53c]
je 0x40c6f0
cmp eax, dword [esi + 0x540]
jne 0x40c8b3
push 0
push 0xf020
push 0x112
lea ecx, [esi - 0x20]
call fcn.0041c1b0
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
jmp 0x40c8d9
cmp eax, dword [esi + 0x544]
je 0x40c4cc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2cc]
call fcn.00411c90
push edi
mov ecx, esi
call fcn.00420080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6d11
mov esp, ebp
pop ebp
ret 4
push str.selectchanged
mov ecx, edi
call fcn.00411e30
test al, al
je 0x40c97e
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x350]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x350]
mov dword [ebp - 4], 4
call fcn.00412720
push eax
push str.selectchanged
push str._XIMAO__s:_s_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00411760
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x508]
movzx eax, byte [esi + 0x49c]
push eax
mov edx, dword [ecx]
call dword [edx + 0xec]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x350]
jmp 0x40c8cc
push str.killfocus
mov ecx, edi
call fcn.00411e30
test al, al
je 0x40c8d1
mov eax, dword [edi + 0x108]
cmp eax, dword [esi + 0x528]
jne 0x40c8d1
push 0
lea ecx, [esi - 0x20]
call fcn.0040de20
jmp 0x40c8d9
call fcn.004f7238
int3