Function at 0x1034d7a2
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003dfd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x227c
call fcn.10366402
mov eax, dword [0x1004d6f8]
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
mov esi, 0xf
xor edi, edi
push 0x10040988
lea ecx, [esp + 0x2c]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.10343242
mov eax, dword [ebx]
push edi
push 0x1004c1b8
push 0x1004c1a0
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edi
call dword [eax + 0xc]
push eax
call fcn.10365378
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
jb 0x1034d84a
mov edx, dword [esp + 0x28]
push edx
call fcn.103727b5
add esp, 4
push edi
push 2
push 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
call dword [0x1004059c]
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
mov dword [esp + 0x1c], esi
jne 0x1034d88b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x100414b8
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
mov eax, 1
jmp 0x1034dcd6
push 4
lea edx, [esp + 0x18]
push edx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x28], edi
call dword [0x10040594]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x1034d8c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x100414a8
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
xor edx, edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
push 0x3ef8
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov word [esp + 0x174], 2
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edi
call dword [0x10040590]
mov word [esp + 0x172], ax
push 0x10
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push esi
call dword [fcn.1004058c]
cmp eax, reloc.WINMM.dll_midiStreamOut
jne 0x1034d93d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1004149c
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
push esi
call dword [fcn.100405cc]
mov eax, 1
jmp 0x1034dcd6
mov al, byte [ebx + 0xc4]
test al, al
mov dword [ebx + 0xd4], esi
je 0x1034dcd4
nop
call fcn.10354662
mov cl, byte [eax + 0x9fd]
test cl, cl
je 0x1034dcd4
xor eax, eax
mov ecx, 0x800
lea edi, reloc.WINMM.dll_midiStreamOut
rep stosd dword es:[edi], eax
lea edx, [esp + 0x20]
push edx
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
push 0
push 0x5c0
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push esi
mov dword [esp + 0x38], 0x10
call dword [0x10040584]
test eax, eax
jle 0x1034dcc6
push 0xffffffffffffffff
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355382
push 0
push 0x3a
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 1
call fcn.10354f32
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
lea ecx, reloc.WINMM.dll_midiStreamOut
je 0x1034dcb2
push esi
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
call fcn.103553b2
push 0x10041494
mov ecx, eax
mov byte [esp + 0x2298], 2
call fcn.103550b2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x13], al
mov byte [esp + 0x2294], 1
call fcn.10354cc2
mov al, byte [esp + 0x13]
test al, al
je 0x1034db70
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x94]
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355412
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2298], 3
call fcn.10355002
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2294], 1
call fcn.10354cc2
push 0
push 0x2c
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354f32
mov esi, eax
push esi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.103553b2
push 0xffffffffffffffff
inc esi
push esi
lea eax, reloc.WINMM.dll_midiStreamOut
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x22a0], 4
call fcn.10355412
lea ecx, [ebx + 0x2c]
mov byte [esp + 0x2294], 5
call fcn.10354d32
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.103550b2
test al, al
je 0x1034db43
lea ecx, [ebx + 0x78]
call fcn.10354d32
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.103550b2
test al, al
je 0x1034db43
mov ecx, dword [ebx + 0xd0]
push ecx
lea edx, reloc.WINMM.dll_midiStreamOut
push 0x1004148c
push edx
call fcn.10355762
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d12
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [0x10040588]
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2294], 4
call fcn.10354cc2
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2294], 1
call fcn.10354cc2
jmp 0x1034dcab
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.103553b2
push 0x10041488
mov ecx, eax
mov byte [esp + 0x2298], 6
call fcn.103550b2
lea ecx, [esp + 0x40]
mov byte [esp + 0x13], al
mov byte [esp + 0x2294], 1
call fcn.10354cc2
mov al, byte [esp + 0x13]
test al, al
je 0x1034dcab
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0xe0]
push ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10355412
push eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov byte [esp + 0x2298], 7
call fcn.10355002
lea ecx, [esp + 0xd8]
mov byte [esp + 0x2294], 1
call fcn.10354cc2
mov edi, dword [ebx + 0xd0]
lea ecx, reloc.WINMM.dll_midiStreamOut
call fcn.10354d32
push eax
call fcn.10364ad2
add esp, 4
cmp eax, edi
jne 0x1034dcab
xor esi, esi
cmp edi, esi
mov dword [esp + 0x14], esi
jbe 0x1034dc8f
cmp dword [esp + 0x14], reloc.WINMM.dll_midiStreamOut
jbe 0x1034dc3f
push 0x64
call dword [0x100402f0]
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 0xd0]
sub eax, esi
cmp eax, 0x5c0
jle 0x1034dc53
mov eax, 0x5c0
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [ebx + 0xcc]
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push 0
push eax
mov eax, dword [esp + 0x2c]
add edx, esi
push edx
push eax
call dword [0x10040588]
test eax, eax
jle 0x1034dc8f
mov ecx, dword [esp + 0x14]
add ecx, eax
add esi, eax
cmp esi, dword [ebx + 0xd0]
mov dword [esp + 0x14], ecx
jb 0x1034dc25
cmp esi, dword [ebx + 0xd0]
jb 0x1034dcab
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x10041478
push 4
push eax
call dword [ecx + 0x20]
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiStreamOut
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
call fcn.10354cc2
mov esi, dword [esp + 0x1c]
mov al, byte [ebx + 0xc4]
test al, al
jne 0x1034d952
xor eax, eax
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov dword fs:[0], ecx
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
call fcn.10364a3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret