Function at 0x431bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [0x57d764]
push esi
xor esi, esi
mov dword [ebp - 0x1c], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0xe0], 0x100000
cmp ecx, 0x100000
jb 0x431c3e
mov eax, dword [0x57d768]
push 4
push 0x1000
sub eax, ecx
push 0x100000
add eax, 0x1056220
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x57d764]
mov esi, eax
test esi, esi
je 0x431c3e
cmp ecx, 0x110000
jae 0x431c32
mov eax, dword [0x58dba0]
mov ecx, 0x58dba0
push 0
push str.Sound_Buffer_Memory_out
call dword [eax + 4]
mov ecx, dword [0x57d764]
sub ecx, 0x110000
mov dword [0x57d764], ecx
mov dword [ebx + 0xdc], esi
test esi, esi
jne 0x431c64
pop edi
pop esi
mov dword [ebx + 0x4c], 0x22
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 8]
mov dword [ebx + 0xc8], eax
cmp eax, ecx
ja 0x431c7a
mov ecx, eax
call fcn.00430100
jmp 0x431c7c
xor eax, eax
mov dword [ebx + 0xc0], eax
test eax, eax
je 0x431c48
push 0x57c8f0
push 0x310
call fcn.004da558
mov esi, eax
add esp, 8
test esi, esi
je 0x431cad
mov ecx, esi
call fcn.00430610
mov dword [esi], vtable.COggDecodeUser.0
jmp 0x431caf
xor esi, esi
mov dword [ebx + 0xec], esi
test esi, esi
jne 0x431cd5
pop edi
pop esi
mov dword [ebx + 0x4c], 0x26
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
push dword [ebx + 0xc8]
mov eax, dword [esi]
mov ecx, esi
push dword [ebx + 0xc0]
push dword [ebx + 0xe0]
mov eax, dword [eax + 4]
push dword [ebx + 0xdc]
push edi
call eax
test al, al
jne 0x431d17
pop edi
pop esi
mov dword [ebx + 0x4c], 0x27
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
mov ax, word [edi + 2]
mov ebx, 1
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov si, word [edi + 0xc]
mov di, word [edi + 0xe]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], bx
or eax, 0x80c8
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebx]
mov ecx, ebx
push eax
mov word [ebp - 0xc], si
mov word [ebp - 0xa], di
call dword [edx + 0x4c]
test eax, eax
jne 0x431d81
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 8]
push eax
push 0
push ebx
push 0x430320
push 0
push 0
call fcn.004da838
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x431dd4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
pop edi
pop esi
mov dword [ebx + 0x4c], 0x24
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8