Function at 0x6f254030
Capabilities:
Create thread
Get process heap flags

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [esp + 0x28], ecx
test byte [0x6f2661e0], 8
jne 0x6f2541e0
test byte [esp + 0x28], 0x10
je 0x6f254068
mov eax, dword [0x6f27a52c]
test eax, eax
je 0x6f254068
xor eax, eax
jmp 0x6f2541ce
test ebx, ebx
je 0x6f254079
mov edi, dword [esp + 0x28]
and edi, 0x40
je 0x6f254218
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6f266460
call ebx
mov edx, dword [0x6f27a52c]
sub esp, 4
mov dword [esp + 0x2c], 0
test edx, edx
je 0x6f25438f
mov ebp, dword [sym.imp.kernel32.dll_ResetEvent]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea esi, [esi]
nop
mov eax, dword [0x6f27af40]
mov dword [esp], eax
call ebp
mov eax, dword [0x6f27a52c]
mov dword [0x6f27a528], 1
sub esp, 4
mov eax, dword [eax + 0x10]
test eax, eax
je 0x6f2540e6
mov dword [esp], eax
call sym.winmm.dll_waveOutReset
sub esp, 4
mov dword [esp], 0x6f266460
call esi
mov eax, dword [0x6f27af40]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp], 0x6f266460
call ebx
mov ecx, dword [0x6f27a52c]
mov dword [0x6f27a528], 0
sub esp, 4
test ecx, ecx
jne 0x6f2540b8
mov edi, dword [esp + 0x2c]
mov dword [esp], 0x6f266460
mov dword [0x6f27a52c], edi
call esi
sub esp, 4
test edi, edi
je 0x6f2541c9
mov eax, dword [esp + 0x28]
test al, 1
je 0x6f2542d0
mov ecx, dword [esp + 0x2c]
shr eax, 3
mov edx, eax
and edx, 1
movzx eax, byte [ecx]
mov byte [esp + 0x28], al
and eax, 0xfffffffe
or eax, edx
mov byte [ecx], al
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], fcn.6f252f60
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x6f2542f0
mov dword [esp + 4], 0xf
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.pszSound_p_hmod_p_fdwSound_08lX_n
mov dword [esp + 8], str.MULTIMEDIA_PlaySound
mov dword [esp + 4], 0x6f2661e0
mov dword [esp], 3
call fcn.6f252a90
jmp 0x6f25404c
mov dword [esp + 8], 0x14
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
sub esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6f25405c
mov edx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov eax, edx
and eax, 0x170004
cmp eax, 0x40004
je 0x6f254300
ja 0x6f2543ee
cmp eax, 0x10000
je 0x6f25430d
ja 0x6f2543a4
test eax, eax
je 0x6f25430d
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x6f266460
call ebx
mov eax, dword [0x6f27a52c]
sub esp, 4
test eax, eax
jne 0x6f2540a1
mov eax, dword [esp + 0x2c]
mov dword [esp], 0x6f266460
mov dword [0x6f27a52c], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f254145
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.6f252f60
sub esp, 4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
call fcn.6f2526f0
xor eax, eax
jmp 0x6f2541ce
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x6f254289
mov eax, dword [esp + 0x60]
test eax, eax
je 0x6f2543fb
test byte [esp + 0x28], 1
je 0x6f254289
cmp word [ebx], 0
je 0x6f254426
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x6f254330
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
sub esp, 0xc
test eax, eax
je 0x6f254430
lea esi, [esi]
nop
movzx edx, word [ebx + edi]
mov word [eax + edi], dx
add edi, 2
test dx, dx
jne 0x6f254370
mov edx, dword [esp + 0x2c]
or byte [edx], 2
mov dword [edx + 4], eax
jmp 0x6f254290
mov dword [esp], 0x6f266460
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f2541c9
mov eax, dword [esp + 0x28]
and eax, 0x160004
cmp eax, 0x20000
je 0x6f25430d
test byte [0x6f2661e0], 1
je 0x6f254289
mov dword [esp + 0xc], str.WTF_n
mov dword [esp + 8], str.PlaySound_IsString
mov dword [esp + 4], 0x6f2661e0
mov dword [esp], 0
call fcn.6f252a90
jmp 0x6f254289
cmp eax, 0x110000
je 0x6f254289
jmp 0x6f2543b8
lea eax, [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
sub esp, 8
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], eax
test eax, eax
je 0x6f254430
or byte [edx], 2
jmp 0x6f254290
mov eax, 2
jmp 0x6f25433e
mov eax, dword [esp + 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
test byte [eax], 2
jne 0x6f25446a
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 0xc
jmp 0x6f2541ce
mov edx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword fs:[0x18]
mov edx, dword [edx + 4]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x6f25443f