Function at 0x404a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c11a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x437df8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], eax
mov al, byte [esi + 0x1ec]
mov dword [ebp - 4], 0
test al, al
je 0x404a4b
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0042639a
mov edi, eax
push 0xc
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0xf4], eax
mov ecx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
call fcn.0042a3ee
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x14c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea edx, [ebp - 0x24c]
push 0
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14c]
push eax
push ecx
call fcn.004117ec
push 0
lea edx, [ebp - 0x24c]
push 0
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14c]
push eax
push ecx
call fcn.0041175b
add esp, 0x28
lea edx, [ebp - 0x14c]
lea ecx, [esi + 0x280]
push edx
call fcn.00424178
xor edi, edi
lea ecx, [ebp - 0x3c]
call fcn.0041052b
mov eax, dword [0x437df8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi*4 + 0x436488]
mov byte [ebp - 4], 2
test eax, eax
jne 0x404df5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042407f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00410568
mov ecx, dword [esi + 0x280]
push str.karaoke.mka
push str.data_
push ecx
lea edx, [ebp - 0x18]
push str._s_s_s
push edx
call fcn.0041ed0f
mov edi, 0x10
mov bl, 4
push edi
mov byte [ebp - 4], bl
call fcn.00423dc0
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x404b6e
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov ecx, eax
call fcn.00424b6e
mov ecx, eax
jmp 0x404b70
xor ecx, ecx
mov dword [esi + 0x398], ecx
mov edx, dword [ecx]
lea eax, [ebp - 0x48]
push 0xc
push eax
mov byte [ebp - 4], bl
call dword [edx + 0x34]
cmp dword [ebp - 0x48], 0x20414b4d
je 0x404b92
call fcn.00426918
mov eax, dword [esi + 0xf4]
mov ecx, dword [ebp - 0x40]
cmp eax, edi
mov dword [esi + 0x34c], ecx
mov dword [ebp - 4], 0
jae 0x404bc2
mov dword [esi + 0xf4], edi
mov byte [esi + 0xf8], 0
mov byte [esi + 0x1ed], 1
jmp 0x404bc9
mov byte [esi + 0xf8], 1
mov al, byte [esi + 0x1ed]
test al, al
je 0x404c39
test esi, esi
jne 0x404bdb
xor eax, eax
jmp 0x404bde
mov eax, dword [esi + 0x1c]
push 0
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x23
push 0
push 0
push 0
push 0
push 0x43cea0
mov ecx, esi
call fcn.00423756
test esi, esi
jne 0x404c07
xor eax, eax
jmp 0x404c0a
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf0]
push edx
mov edx, dword [esi + 0xec]
lea ebx, [esi + 0xbc]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004014b0
mov edi, eax
test edi, edi
jl 0x404dd3
jmp 0x404c9b
test esi, esi
jne 0x404c41
xor eax, eax
jmp 0x404c44
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1e0]
push ecx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x23
push 0
push 0
push 0
push 0
push 0x43cea0
mov ecx, esi
call fcn.00423756
test esi, esi
jne 0x404c72
xor eax, eax
jmp 0x404c75
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0xf0]
mov ecx, dword [esi + 0xec]
lea ebx, [esi + 0xbc]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00401610
mov edi, eax
test edi, edi
jl 0x404dd3
mov ecx, dword [esi + 0xe4]
test ecx, ecx
sete dl
mov ecx, ebx
mov byte [esi + 0x1ed], dl
call fcn.00401ca0
mov edi, eax
test edi, edi
jl 0x404dd3
mov ecx, esi
call fcn.004053d0
mov edi, eax
test edi, edi
jl 0x404dd3
mov ecx, esi
call fcn.00409320
mov eax, dword [esi + 0x280]
push str.data_
push eax
lea ecx, [ebp - 0x18]
push str._s_sstartup.mk
push ecx
call fcn.0041ed0f
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push edx
call fcn.00407670
mov ecx, esi
call fcn.00404f00
mov edi, eax
test edi, edi
jl 0x404dd3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x248], eax
jne 0x404d30
mov edi, 0x80004005
jmp 0x404dd3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esi + 0x284]
push eax
push 0
push esi
push 0x4051f0
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x28c], eax
jne 0x404d5c
mov edi, 0x80004005
jmp 0x404dd3
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xf
push eax
call edi
lea ecx, [esi + 0x288]
push ecx
push 0
push esi
push 0x405270
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x290], eax
jne 0x404d8d
mov edi, 0x80004005
jmp 0x404dd3
push 0xf
push eax
call edi
lea ecx, [ebp - 0x18]
mov byte [esi + 0x250], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0042407f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0042407f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x280]
lea ecx, [ebp - 0x14]
push eax
call fcn.00424128
push str.video_
lea ecx, [ebp - 0x14]
call fcn.004242f1
push 0x4366bc
lea ecx, [ebp - 0x14]
call fcn.004242f1
mov edx, dword [edi*4 + 0x436488]
lea ecx, [ebp - 0x14]
push edx
call fcn.004242f1
mov eax, dword [ebp - 0x14]
push 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004105ee
test eax, eax
je 0x404e85
lea ecx, [ebp - 0x3c]
call fcn.0041080e
mov edx, dword [ebp - 0x3c]
push 0x10
lea ecx, [ebp - 0x3c]
mov ebx, eax
call dword [edx + 0x38]
test eax, eax
jne 0x404e81
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push eax
call fcn.004108dd
push eax
lea ecx, [esi + 0x264]
mov byte [ebp - 4], 3
call fcn.0041f8e5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0042407f
test ebx, ebx
jne 0x404e40
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042407f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00410568
inc edi
jmp 0x404ae5