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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41789c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2838
call fcn.00414670
mov eax, dword [0x419448]
xor eax, esp
mov dword [esp + 0x2834], eax
push esi
push edi
mov eax, dword [0x419448]
xor eax, esp
push eax
lea eax, [esp + 0x2848]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x190
mov dword [esp + 0x1c], eax
call dword [sym.imp.GrooveNew.DLL_void____cdecl_GrooveNew_unsigned_int_]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
pop ecx
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push 0x64
xor eax, eax
push 0x191
stosd dword es:[edi], eax
push dword [ebx + 0x30]
call esi
test eax, eax
mov dword [esp + 0x14], eax
jg 0x40b94e
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_static_struct_HINSTANCE______stdcall_GCGrooveResourceModule::GetHandle_void_]
call esi
push eax
push 0x3abe
lea edi, [esp + 0x1c]
call fcn.00407a99
mov eax, dword [eax]
mov dword [esp + 0x10], eax
and dword [esp + 0x2850], 0
call esi
push eax
push 0x3abf
lea edi, [esp + 0x1c]
call fcn.00407a99
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov byte [esp + 0x2850], 1
push 0x30
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x2850], 0
cmp dword [esp + 0xc], 0
mov esi, dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
je 0x40b932
lea ecx, [esp + 0xc]
call esi
or dword [esp + 0x2850], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x40b947
lea ecx, [esp + 0x10]
call esi
xor al, al
jmp 0x40ba6b
and dword [esp + 0x10], 0
test eax, eax
jle 0x40ba5e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
push 0
push eax
push 0x18a
push dword [ebx + 0x30]
call esi
cmp eax, 0x3fc
jge 0x40b9cb
lea eax, [esp + 0x1c]
push eax
call fcn.00406b5b
mov dword [esp + 0x2850], 2
push dword [esp + 0x1c]
mov edi, dword [edi]
push edi
push 0x189
push dword [ebx + 0x30]
mov byte [esp + 0x34], 1
call esi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
call fcn.00406a5b
or dword [esp + 0x2850], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00408436
jmp 0x40ba4c
and dword [esp + 0x838], 0
and word [esp + 0x83c], 0
lea eax, [esp + 0x83c]
mov dword [esp + 0x82c], eax
mov dword [esp + 0x830], 0x1000
mov byte [esp + 0x834], 0
mov dword [esp + 0x2850], 4
push dword [esp + 0x82c]
mov edi, dword [edi]
push edi
push 0x189
push dword [ebx + 0x30]
mov byte [esp + 0x844], 1
call esi
push dword [esp + 0x82c]
mov edi, dword [esp + 0x1c]
call fcn.00406a5b
or dword [esp + 0x2850], 0xffffffff
lea eax, [esp + 0x82c]
push eax
mov ecx, eax
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStackStrBase::int_DeallocateBufferIfNecessary_wchar_t___]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x40b95b
push dword [esp + 0xc]
call dword [sym.imp.GrooveNew.DLL_void___cdecl_GrooveDelete_void__]
pop ecx
mov al, 1
mov ecx, dword [esp + 0x2848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2834]
xor ecx, esp
call fcn.0040c4c6
mov esp, ebp
pop ebp
ret 4