Function at 0x408b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x40a760
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 6
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x51bd00
call fcn.004010c0
mov ebx, dword [esp + 0x24]
xor ecx, ecx
mov edi, dword [esp + 0x20]
add esp, 4
mov esi, dword [ebx]
mov eax, dword [edi]
and esi, 0xfffffffe
mov dword [esp + 0x14], eax
mov eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dc76
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x408bd7
push esi
push dword [esp + 0x18]
push eax
call fcn.0040c790
mov eax, dword [esp + 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebx + 4]
xor ecx, ecx
mov eax, dword [edi + 4]
and esi, 0xfffffffe
mov dword [esp + 0x10], eax
mov eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dc76
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x408c1b
push esi
push dword [esp + 0x14]
push eax
call fcn.0040c790
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [0x5205dc], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dc76
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x408c5f
push esi
push dword [esp + 0x14]
push eax
call fcn.0040c790
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [0x5205a8], esi
mov esi, dword [ebx + 0xc]
mov dword [0x5205a4], eax
mov eax, dword [edi + 0xc]
push esi
mov dword [esp + 0x14], eax
call fcn.0040dc76
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408c91
push esi
push dword [esp + 0x14]
push ebx
call fcn.0040c790
add esp, 0xc
mov dword [0x52061c], ebx
mov ebx, dword [esp + 0x24]
mov dword [0x520634], esi
xor esi, esi
test ebx, ebx
je 0x408cd0
push dword [edi + esi*4]
call fcn.0040dc5b
inc esi
add esp, 4
cmp esi, ebx
jb 0x408ca7
test ebx, ebx
je 0x408cd0
push edi
call fcn.0040dc5b
add esp, 4
push dword [esp + 0x20]
call fcn.0040dc5b
add esp, 4
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xorps xmm0, xmm0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x84], 0x10028
mov dword [esp + 0x88], 0x25
mov dword [esp + 0x8c], 0x1800
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 8
mov dword [esp + 0x98], 0x18000000
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x5c], 0x20
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], esi
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0x51bedc
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x6000000
push 0x51bedc
push 0x51bedc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea ecx, [esp + 0x80]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetPixelFormat]
push esi
call dword [sym.imp.OPENGL32.dll_wglCreateContext]
mov edi, eax
push edi
push esi
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov esi, dword [sym.imp.OPENGL32.dll_wglGetProcAddress]
push str.wglSwapIntervalEXT
call esi
push str.wglGetPixelFormatAttribivARB
mov dword [0x520638], eax
call esi
push str.wglChoosePixelFormatARB
call esi
push str.wglCreateContextAttribsARB
mov dword [0x5205cc], eax
call esi
push edi
mov dword [0x5205e8], eax
call dword [sym.imp.OPENGL32.dll_wglDeleteContext]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ebx, dword [esp + 0x18]
push ebx
push 0x51bedc
call dword [sym.imp.USER32.dll_UnregisterClassW]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push str.MAINICON
mov dword [esp + 0x4c], eax
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
movaps xmm0, xmmword [0x51c010]
lea eax, [esp + 0xa8]
push 0
push 0x16ca0000
push eax
movups xmmword [esp + 0xb4], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov edi, dword [esp + 0xb0]
sub edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xb4]
sub ebx, dword [esp + 0xac]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [esp + 0x14], edi
call esi
sub eax, edi
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
mov esi, dword [esp + 0x18]
sub eax, ebx
push 0
push esi
push 0
push 0
push ebx
push dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
push 0x16ca0000
push str.Team_RLTS_2o23_pATCH
push 0x51bd00
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0
push esi
push 0x4090b0
push 0
push 0
mov dword [0x52062c], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, eax
mov dword [esp + 0x10], ebx
call fcn.00401430
call fcn.00401860
push 0xb80
push 0
push 0x521e80
call fcn.0040bd10
add esp, 0xc
mov dword [0x521840], 0xac44
call fcn.00403220
mov dword [0x520480], 0x400
mov eax, 1
mov byte [0x521e60], 1
mov byte [0x522d64], 1
mov dword [0x522b48], 0x6007d
mov byte [0x521e61], 1
mov dword [0x521e64], 0x453bc8
mov word [0x522b4e], ax
call fcn.004018e0
call fcn.00401950
call fcn.00402bd0
call fcn.00402ff0
mov byte [0x521e6c], 1
call fcn.00401430
mov eax, dword [0x5203cc]
test eax, eax
je 0x408fbe
push eax
call fcn.0040dc5b
add esp, 4
mov dword [0x5203cc], 0
mov edi, 0x40
mov word [0x522a36], 0
mov word [0x522b4c], di
mov byte [0x521e6c], 0
call fcn.00401950
call fcn.00402ff0
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xb8]
push 0
push 0
push dword [0x52062c]
push eax
call esi
test eax, eax
jle 0x409045
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [esp + 0xb8]
push eax
call edi
lea eax, [esp + 0xb8]
push eax
call ebx
push 0
push 0
push dword [0x52062c]
lea eax, [esp + 0xc4]
push eax
call esi
test eax, eax
jg 0x409010
mov ebx, dword [esp + 0x10]
mov edi, 0x40
mov byte [0x521e6c], 1
call fcn.00401430
mov eax, dword [0x5203cc]
test eax, eax
je 0x40906d
push eax
call fcn.0040dc5b
add esp, 4
mov dword [0x5203cc], 0
mov word [0x522b4c], di
mov byte [0x521e6c], 0
call fcn.00401860
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xc0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040add9
mov esp, ebp
pop ebp
ret 0x10