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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ae57
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5a9840]
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.00416180
test al, al
je 0x40d5df
lea ecx, [esi - 0x20]
call fcn.0040e250
jmp 0x40dc73
push str.click
mov ecx, edi
call fcn.00416180
test al, al
je 0x40dc98
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], 0
call fcn.00416a70
push eax
push str.click
push str._XIMAO__s:_s_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415ab0
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 + 0x504]
je 0x40d82f
cmp eax, dword [esi + 0x508]
jne 0x40d804
mov ecx, dword [esi + 0x550]
lea edx, [ebp - 0x2cc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0x565fbc
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
call fcn.00416180
test al, al
je 0x40d6ba
push 0x10
push 0x565fd0
push 0x565fd8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x2cc]
call fcn.00415fe0
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
push str.windows7
lea ecx, [ebp - 0x2cc]
call fcn.00416180
test al, al
je 0x40d75f
push 0x40
push 0x565b2c
push 0x566004
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x5ac500]
lea edi, [esi - 0x20]
mov dword [0x5ac4f4], eax
mov ecx, edi
lea eax, [ebp - 0x230]
push eax
call fcn.0040c550
add esi, 0x4a0
push eax
mov ecx, esi
call fcn.0040a2c0
lea ecx, [ebp - 0x230]
call fcn.00409960
push esi
call fcn.0040c770
mov ecx, dword [0x5ac4f4]
add esp, 4
cmp edx, dword [ecx + 0xc]
jg 0x40d73d
jl 0x40d7de
cmp eax, dword [ecx + 8]
jbe 0x40d7de
mov ecx, edi
call fcn.0040b3c0
lea ecx, [ebp - 0x2cc]
call fcn.00415fe0
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
push str.windows10_11
lea ecx, [ebp - 0x2cc]
call fcn.00416180
test al, al
je 0x40d744
push 0x40
push 0x565b2c
push 0x566068
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x5ac504]
lea edi, [esi - 0x20]
mov dword [0x5ac4f4], eax
mov ecx, edi
lea eax, [ebp - 0x230]
push eax
call fcn.0040c550
add esi, 0x4a0
push eax
mov ecx, esi
call fcn.0040a2c0
lea ecx, [ebp - 0x230]
call fcn.00409960
push esi
call fcn.0040c770
mov ecx, dword [0x5ac4f4]
add esp, 4
cmp edx, dword [ecx + 0xc]
jg 0x40d73d
jl 0x40d7de
cmp eax, dword [ecx + 8]
ja 0x40d73d
push 0x10
push 0x565b2c
push 0x566018
mov ecx, edi
call fcn.004200c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, edi
call fcn.0040ef20
jmp 0x40d744
cmp eax, dword [esi + 0x50c]
je 0x40d869
cmp eax, dword [esi + 0x554]
je 0x40d82f
cmp eax, dword [esi + 0x510]
jne 0x40d83f
cmp byte [esi + 0x49c], 0
je 0x40d82f
lea ecx, [esi - 0x20]
push 2
call fcn.0040a980
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x514]
jne 0x40d861
lea ecx, [esi - 0x20]
push 0
call fcn.0040a980
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x518]
jne 0x40d883
lea ecx, [esi - 0x20]
push 1
call fcn.0040a980
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x51c]
jne 0x40d994
push 1
lea ecx, [esi - 0x20]
call fcn.0040f170
test al, al
jne 0x40d8c8
push 0x10
push 0x565b2c
push 0x566084
lea ecx, [esi - 0x20]
call fcn.004200c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
push 0x50
call fcn.004ef1c0
mov edi, eax
add esp, 4
test edi, edi
je 0x40d919
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 0x40d91b
xor edi, edi
lea eax, [esi - 0x20]
mov ecx, eax
mov dword [edi], eax
call fcn.004200c0
mov dword [edi + 4], eax
lea ecx, [edi + 8]
lea eax, [esi + 0x4b8]
push eax
call fcn.0040a300
lea eax, [esi + 0x4a0]
push eax
lea ecx, [edi + 0x20]
call fcn.0040a300
lea eax, [esi + 0x4d0]
push eax
lea ecx, [edi + 0x38]
call fcn.0040a300
lea eax, [ebp - 0x354]
mov dword [ebp - 0x354], 0
push eax
push 0
push edi
push 0x40b700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 3
lea ecx, [esi - 0x20]
call fcn.0040a980
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x520]
jne 0x40da8a
lea edi, [esi + 0x4d0]
push edi
lea ecx, [ebp - 0x230]
call fcn.00408e40
push 0x5c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.0040a680
push 0x565ed0
lea ecx, [ebp - 0x230]
call fcn.0040a650
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
call fcn.0040c020
add esp, 4
test eax, eax
jne 0x40da1b
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._XIMAO__uiStartGame_ExistFile_fail_r_n
call eax
lea ecx, [ebp - 0x230]
call fcn.00409960
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp dword [edi + 0x14], 7
jbe 0x40da23
mov edi, dword [edi]
push 1
push edi
push 0
push 0x565ed0
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.00415ab0
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.0040ef20
lea ecx, [ebp - 0x230]
call fcn.00409960
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x524]
jne 0x40daaa
lea ecx, [esi - 0x20]
call fcn.0040ef20
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x528]
jne 0x40dbac
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], 3
push eax
lea ecx, [esi - 0x20]
call fcn.0040f3a0
test al, al
je 0x40db16
mov ecx, dword [esi + 0x530]
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 0x40db4e
lea eax, [ebp - 0x248]
push eax
call fcn.0040c690
add esp, 4
mov edx, eax
cmp dword [edx + 0x14], 7
mov byte [ebp - 4], 4
jbe 0x40db33
mov edx, dword [edx]
mov ecx, dword [esi + 0x530]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.00409960
push 0
lea ecx, [esi - 0x20]
call fcn.0040f170
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x40d82f
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40db92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd55
push ecx
push edx
call fcn.004ef1f0
add esp, 8
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
mov ecx, dword [esi + 0x52c]
cmp eax, ecx
jne 0x40dbe4
call fcn.00427510
mov ecx, dword [esi + 0x510]
xor al, 1
mov dl, al
mov byte [esi + 0x49c], dl
push edx
mov eax, dword [ecx]
call dword [eax + 0xec]
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x534]
je 0x40d82f
cmp eax, dword [esi + 0x538]
je 0x40d82f
cmp eax, dword [esi + 0x53c]
je 0x40d82f
cmp eax, dword [esi + 0x558]
je 0x40d82f
cmp eax, dword [esi + 0x560]
je 0x40d82f
cmp eax, dword [esi + 0x544]
je 0x40da92
cmp eax, dword [esi + 0x548]
jne 0x40dc55
push 0
push 0xf020
lea ecx, [esi - 0x20]
push 0x112
call fcn.00420500
lea ecx, [ebp - 0x350]
call fcn.00415fe0
jmp 0x40dc7b
cmp eax, dword [esi + 0x54c]
je 0x40d82f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x350]
call fcn.00415fe0
push edi
mov ecx, esi
call fcn.004243b0
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.004ef253
mov esp, ebp
pop ebp
ret 4
push str.selectchanged
mov ecx, edi
call fcn.00416180
test al, al
je 0x40dd20
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], 5
call fcn.00416a70
push eax
push str.selectchanged
push str._XIMAO__s:_s_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415ab0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x510]
movzx eax, byte [esi + 0x49c]
push eax
mov edx, dword [ecx]
call dword [edx + 0xec]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2cc]
jmp 0x40dc6e
push str.killfocus
mov ecx, edi
call fcn.00416180
test al, al
je 0x40dc73
mov eax, dword [edi + 0x108]
cmp eax, dword [esi + 0x530]
jne 0x40dc73
lea ecx, [esi - 0x20]
push 0
call fcn.0040f170
jmp 0x40dc7b
call fcn.004ff818
int3