Function at 0x42d3f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, eax
mov eax, ebp
imul eax, eax, 0x81700
push esi
lea esi, [eax + ebx]
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push edi
lea edi, [esi + 0x44]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi], 0x24
mov dword [esi + 0x48], 0x18188
mov eax, dword [0x4b5af0]
test eax, eax
jne 0x42d441
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x12
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0xa0], eax
mov ecx, 1
mov word [eax], cx
mov edx, dword [esi + 0xa0]
mov eax, 2
mov word [edx + 2], ax
cmp ebp, ecx
je 0x42d494
cmp ebp, 3
jge 0x42d494
mov ecx, dword [esi + 0xa0]
mov dword [ecx + 4], 0xac44
cmp ebp, eax
jne 0x42d4a1
mov edx, dword [ebx + 0x102ea0]
mov eax, 1
mov word [edx + 2], ax
jmp 0x42d4a1
mov ecx, dword [esi + 0xa0]
mov dword [ecx + 4], 0x5622
mov edx, dword [esi + 0xa0]
mov eax, 0x10
mov word [edx + 0xe], ax
mov ecx, dword [esi + 0xa0]
movzx edx, word [ecx + 2]
movzx eax, word [ecx + 0xe]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [ecx + 0xc], ax
mov eax, dword [esi + 0xa0]
movzx ecx, word [eax + 0xc]
imul ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xa0]
xor eax, eax
mov word [edx + 0x10], ax
mov dword [esi + 0x8172c], eax
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax + 8]
add ecx, ecx
mov dword [esi + 0x4c], ecx
push 0
lea ecx, [esi + 0x40]
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
push ecx
push edi
push eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x20], ecx
call eax
test eax, eax
jge 0x42d53f
mov ecx, dword [0x4b3c9c]
push 0
push 0x4944a0
push 0x494548
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp ebp, 3
ja case.default.0x42d544
jmp dword [ebp*4 + 0x42d824]
mov eax, dword [0x4b3da4]
xor ecx, ecx
jmp 0x42d575
mov ecx, 1
jmp 0x42d570
mov eax, dword [0x4b3da8]
mov ecx, 2
jmp 0x42d575
mov ecx, 3
jmp 0x42d570
mov ecx, ebp
mov eax, dword [0x4b3dac]
push ebx
call fcn.0042d1d0
mov edx, dword [esi + 0x4c]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add esp, 4
mov dword [esp + 0x24], edx
mov ecx, dword [eax]
push 2
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
push edx
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
call fcn.00463f50
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, dword [eax]
add esp, 0xc
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esi + 0x68]
push ecx
push 0x4844bc
push eax
mov eax, dword [edx]
mov dword [esp + 0x20], ecx
call eax
test eax, eax
jge 0x42d62f
mov ecx, dword [0x4b3c9c]
push 0
push 0x4944a0
push 0x494588
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
lea eax, [esi + 0x8c]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
nop
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
je 0x42d71a
add dword [esp + 0x24], 4
inc edi
cmp edi, 4
jl 0x42d640
mov edi, dword [esp + 0x14]
mov eax, ebp
imul eax, eax, 0x102e0
mov ecx, ebp
imul ecx, ecx, 0x205c0
mov dword [ebx + eax*8 + 0x6c], 0
mov edx, dword [ebx + ecx*4 + 0x8c]
mov dword [ebx + eax*8 + 0x70], edx
mov edx, dword [esi + 0x4c]
shr edx, 1
mov dword [ebx + eax*8 + 0x74], edx
mov ecx, dword [ebx + ecx*4 + 0x90]
mov dword [ebx + eax*8 + 0x78], ecx
mov edx, dword [esi + 0x94]
mov eax, dword [edi]
mov dword [esi + 0x80], edx
lea edx, [esi + 0x6c]
push edx
mov dword [esi + 0x7c], 0xffffffff
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0xc]
call eax
push 0
test eax, eax
jge 0x42d795
mov ecx, dword [0x4b3c9c]
push 0x4944a0
push str.DirectSoundNotify
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 4
mov edx, dword [esi]
push edx
call ebp
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x42d6f5
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
jmp 0x42d777
mov edx, dword [0x4b3c9c]
push 0
push 0x4944a0
push 0x4945c0
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
sub edi, 1
js 0x42d763
imul ebp, ebp, 0x205c0
add ebp, edi
lea esi, [ebx + ebp*4 + 0x8c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
mov eax, dword [esi]
push eax
call ebx
mov dword [esi], 0
dec edi
sub esi, 4
test edi, edi
jge 0x42d750
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov dword [esi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x9c], eax
test eax, eax
jne 0x42d7d0
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [eax + 4]
mov eax, dword [esi]
push eax
call ebp
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x42d7b8
jmp 0x42d708
mov ecx, dword [ebp*4 + 0x4a3860]
lea eax, [esi + 0x84]
push eax
push 4
push ebx
push ecx
push 0x200000
push 0
call fcn.0045ff01
add esp, 0x18
push 1
push eax
mov dword [esi + 0x88], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret