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

Disassembly:
push 0xffffffffffffffff
push 0x5d5708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], 0
call fcn.00461480
lea edi, [esi + 0xf0]
mov byte [esp + 0x58], 1
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.0041c1e0
lea ebp, [edi + 0x64]
mov byte [esp + 0x58], 2
mov ecx, ebp
mov dword [esp + 0x2c], ebp
call fcn.00413890
lea eax, [esp + 0x13]
lea ecx, [ebp + 0x7c]
push eax
mov byte [esp + 0x5c], 3
call fcn.00486050
mov dword [ebp], 0x5da45c
mov dword [edi], 0x5db950
push fcn.00448080
push fcn.00447960
push 1
lea ecx, [esi + 0x1e8]
push 0xc8
push ecx
mov byte [esp + 0x6c], 4
call fcn.005c3e67
lea edi, [esi + 0x2b4]
mov dword [esp + 0x2c], edi
mov dword [edi], 0x5da8dc
lea ebp, [edi + 4]
push 0
push 0
mov ecx, ebp
mov byte [esp + 0x60], 6
call fcn.0041cc60
mov dword [edi], 0x5da8b4
mov ecx, dword [0x5f33d4]
lea eax, [esp + 0x30]
mov byte [esp + 0x58], 7
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 8
call fcn.004433f0
mov dword [esp + 0x30], 0x5da9f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 9
call fcn.00443050
mov dword [esp + 0x30], 0x5da448
lea ebp, [esi + 0x2c8]
mov byte [esp + 0x58], 0xa
mov ecx, ebp
call fcn.004a9cc0
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x60]
mov byte [esp + 0x58], 0xb
mov dword [esi], 0x5db930
mov dword [esi + 0x9c], ecx
lea edi, [esi + 0x10]
push edx
push str.deck_c_warning.txt
lea ecx, [esp + 0x48]
call fcn.0040e960
mov ebx, eax
lea eax, [esp + 0x13]
lea ecx, [esp + 0x30]
push eax
push str.Mege_y_
mov byte [esp + 0x60], 0xc
call fcn.0040e960
sub esp, 0x10
mov byte [esp + 0x68], 0xd
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebx
push eax
push ecx
call fcn.0040eed0
mov edx, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [edx]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0xc
call fcn.00402850
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 0xb
call fcn.00402850
push 0
mov ecx, edi
mov dword [esi + 0xc], 0xbbb
call fcn.00417f40
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push 0
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x68]
mov edx, dword [esi + 0xbc]
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x60]
mov eax, dword [edi]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call dword [eax + 8]
mov edx, dword [edi + 0x28]
mov eax, dword [esp + 0x60]
mov dword [edx + eax*4], 0
mov ecx, dword [edi + 0x60]
mov edx, dword [esp + 0x60]
mov ecx, dword [ecx + edx*8 + 4]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
sub esp, 0x10
sub edx, eax
mov al, byte [esp + 0x74]
mov edi, esp
mov dword [esi + 0xa0], ecx
mov dword [esp + 0x70], esp
mov dword [esi + 0xa4], edx
push 0
mov ecx, edi
mov byte [edi], al
call fcn.00402850
mov ecx, dword [0x5da354]
lea edx, [esp + 0x74]
push ecx
push 0
push edx
mov ecx, edi
call fcn.00403f40
mov ecx, esi
call fcn.00474ca0
mov eax, dword [esp + 0x68]
mov dword [esi + 0xc0], 0
test eax, eax
mov dword [esi + 0xc4], 1
je 0x474930
mov cl, byte [eax - 1]
test cl, cl
je 0x474926
cmp cl, 0xff
je 0x474926
dec cl
mov byte [eax - 1], cl
jmp 0x474930
dec eax
push eax
call fcn.0054a2d0
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 0x1c