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

Disassembly:
push 0xffffffffffffffff
push 0x50f91e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CUserBase.0
lea ebx, [esi + 0x14]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x2c], edi
call fcn.004e1040
mov ebp, dword [esp + 0x34]
mov dword [esi], vtable.CUserLogic.0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov eax, dword [ebp + 0x6c]
push edi
push 0x545dfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
mov dword [esi + 0x10], eax
mov dword [esi + 4], edi
call fcn.004e0cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, ebx
call fcn.004e0c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004e0bd0
cmp dword [0x5bd4e4], edi
jne 0x406cf1
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.00404330
mov dword [0x5bd4e4], 1
mov ecx, dword [esi + 0xc]
push str.LogicHit
call fcn.004d1320
mov ecx, dword [esi + 0xc]
push str.LogicAttack
call fcn.004d13e0
mov ecx, dword [esi + 0xc]
push str.LogicBump
call fcn.004d14b0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0x3e9
mov dword [esi + 0x30], 2
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x2c], 3
mov dword [esi + 0x40], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov ebx, 4
mov dword [esi], vtable.CAquatisCrack.0
mov ecx, dword [esi + 0x3c]
push str.LEVEL_AQUATISWALLCRACK
mov byte [esp + 0x30], bl
call fcn.004d0cd0
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x34]
push ecx
push str.LEVEL_CRACKGLOW
mov eax, dword [edx + 0xc]
mov dword [esp + 0x3c], edi
mov ecx, dword [eax + 0x2c]
add ecx, 0x10
call fcn.00501434
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x34]
mov dword [esi + 0x58], ecx
mov eax, dword [esi + 0x3c]
push edx
push str.LEVEL_EARTHQUAKE1
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edi
mov ecx, dword [ecx + 0x28]
add ecx, 0x10
call fcn.00501434
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x34]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x3c]
push edx
push str.LEVEL_EARTHQUAKE2
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edi
mov ecx, dword [ecx + 0x28]
add ecx, 0x10
call fcn.00501434
mov eax, dword [esp + 0x34]
push str.LEVEL_EARTHQUAKE3
mov dword [esi + 0x60], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x28]
call fcn.0045cf40
mov dword [esi + 0x64], eax
mov ecx, dword [esi + 0x3c]
push str.LEVEL_EARTHQUAKE4
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 0x28]
call fcn.0045cf40
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x3c]
push str.LEVEL_EARTHQUAKE5
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x28]
call fcn.0045cf40
mov dword [esi + 0x6c], eax
mov edx, dword [esi + 0x3c]
push edi
push edi
push edi
mov dword [edx + 0xdc], ebx
mov eax, dword [esi + 0x3c]
push closesocket
mov dword [eax + 0xe0], 0x1000000
mov ecx, dword [esi + 0x3c]
call fcn.004071f0
mov ecx, dword [esi + 0x3c]
call fcn.004064d0
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x138]
add edx, 0x19
mov dword [eax + 0x138], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x140]
add ecx, 0x64
mov dword [eax + 0x140], ecx
mov ecx, esi
call fcn.00406f00
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4