Function at 0x140004040
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x398
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x388], rax
mov qword [rsp + 0xf0], 0
lea rdi, [rsp + 0xf8]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0x110]
call fcn.140004d80
lea rdi, [rsp + 0x138]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 2
mov r9d, 0x21
mov r8d, 8
mov edx, 5
lea rcx, [rsp + 0x2c0]
call fcn.140001650
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140004ea0
lea rcx, [rsp + 0x2c0]
call fcn.140004e80
lea rcx, [rsp + 0x110]
call fcn.140004fe0
movzx eax, al
test eax, eax
je 0x14000420b
lea rdx, [rsp + 0x190]
xor ecx, ecx
call qword [sym.imp.USER32.dll_BeginPaint]
mov qword [rsp + 0x1e8], rax
lea rax, [0x140013060]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x18
call qword [sym.imp.GDI32.dll_CreateFontW]
mov qword [rsp + 0x1e0], rax
mov rdx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, 0xffffff
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov dword [rsp + 0x20], 2
lea r9, str._OY
mov r8d, 0x64
mov edx, 0x64
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.GDI32.dll_TextOutW]
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, [rsp + 0x190]
xor ecx, ecx
call qword [sym.imp.USER32.dll_EndPaint]
lea rax, [0x140002370]
mov qword [rsp + 0x150], rax
lea rax, [0x1400025a0]
mov qword [rsp + 0x158], rax
lea rax, [0x140002830]
mov qword [rsp + 0x160], rax
lea rax, [0x140002be0]
mov qword [rsp + 0x168], rax
lea rax, [0x140003240]
mov qword [rsp + 0x170], rax
lea rax, [0x140003590]
mov qword [rsp + 0x178], rax
lea rax, [0x1400038b0]
mov qword [rsp + 0x180], rax
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xf8]
call fcn.140001b30
test eax, eax
je 0x140004664
mov ecx, 0x5dc
call fcn.140008fac
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x138], rax
mov ecx, 0x20
call fcn.140008f10
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0xf0], rax
mov rdi, qword [rsp + 0xf0]
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rsp + 0x228], 0
jmp 0x14000430c
mov eax, dword [rsp + 0x228]
add eax, 1
mov dword [rsp + 0x228], eax
cmp dword [rsp + 0x228], 7
jge 0x1400043eb
mov ecx, 0x58
call fcn.140008f10
mov qword [rsp + 0x300], rax
cmp qword [rsp + 0x300], 0
je 0x14000434e
mov rcx, qword [rsp + 0x300]
call fcn.1400048a0
mov qword [rsp + 0x380], rax
jmp 0x14000435a
mov qword [rsp + 0x380], 0
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x230], rax
lea rsi, [rsp + 0xf0]
mov rdi, qword [rsp + 0x230]
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x230]
mov eax, dword [rsp + 0x228]
mov dword [rdx + 0x50], eax
movsxd r8, dword [rsp + 0x228]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x230]
mov r8, qword [rsp + r8*8 + 0x150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
movsxd rax, dword [rsp + 0x228]
mov qword [rsp + rax*8 + 0x70], rdx
jmp 0x1400042fb
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x108]
call fcn.140002020
lea rcx, [rsp + 0x1f8]
call fcn.1400050c0
mov r8d, 8
mov dl, 0x5e
lea rcx, [rsp + 0x308]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 6
mov dl, 0x6f
lea rcx, [rsp + 0x310]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0xa
mov dl, 0x7c
lea rcx, [rsp + 0x318]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 2
mov dl, 0x76
lea rcx, [rsp + 0x320]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 6
mov dl, 0x7b
lea rcx, [rsp + 0x328]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0x13
mov dl, 0x74
lea rcx, [rsp + 0x330]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0xb
mov dl, 0x77
lea rcx, [rsp + 0x338]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0xc
mov dl, 0x5c
lea rcx, [rsp + 0x340]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 9
mov dl, 0x7b
lea rcx, [rsp + 0x348]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0xd
mov dl, 0x7c
lea rcx, [rsp + 0x350]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 8
mov dl, 0x7c
lea rcx, [rsp + 0x358]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 0xa
mov dl, 0x6f
lea rcx, [rsp + 0x360]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 2
mov dl, 0x65
lea rcx, [rsp + 0x368]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov r8d, 5
mov dl, 0x79
lea rcx, [rsp + 0x370]
call fcn.140007740
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.1400051b0
mov rax, qword [rsp + 0xf0]
mov edi, dword [rax + 0x18]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x1f8]
call fcn.1400018d0
lea r9, [rsp + 0x1f0]
mov r8d, 0x40
mov rdx, rdi
mov rcx, qword [rsp + 0x138]
call rax
call qword [rsp + 0x138]
lea rcx, [rsp + 0x1f8]
call fcn.140005110
jmp 0x14000473c
lea rdx, [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_BeginPaint]
mov qword [rsp + 0x2b8], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreatePen]
mov qword [rsp + 0x290], rax
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x298], 0x64
mov dword [rsp + 0x29c], 0x64
mov dword [rsp + 0x2a0], 0xc8
mov dword [rsp + 0x2a4], 0x64
mov dword [rsp + 0x2a8], 0xfa
mov dword [rsp + 0x2ac], 0x96
mov dword [rsp + 0x2b0], 0x32
mov dword [rsp + 0x2b4], 0x96
mov r8d, 4
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.GDI32.dll_Polygon]
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_EndPaint]
mov r9d, 0x64
lea r8, [0x1400181f0]
mov edx, 0x67
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x140018120]
mov edx, 0x6d
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsp + 0x3b0]
call fcn.1400048d0
mov edx, dword [rsp + 0x3c8]
mov rcx, qword [rsp + 0x3b0]
call fcn.140004980
test eax, eax
jne 0x1400047c5
mov dword [rsp + 0x378], 0
lea rcx, [rsp + 0xf0]
call fcn.140004880
mov eax, dword [rsp + 0x378]
jmp 0x14000485c
mov edx, 0x6d
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [rsp + 0xa8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000483a
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140004838
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400047e0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x37c], eax
lea rcx, [rsp + 0xf0]
call fcn.140004880
mov eax, dword [rsp + 0x37c]
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.140008c00
add rsp, 0x398
pop rdi
pop rsi
ret