Function at 0x413780
Capabilities:
Access peb ldr_data
Get number of processors
Manipulate console buffer

Disassembly:
push 0xffffffffffffffff
push 0x4715b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
xor edi, edi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
cmp ebp, edi
jne 0x4137d2
cmp edx, edi
jne 0x4137d2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov edi, eax
or edi, ecx
je 0x4137f2
cmp ebp, eax
jne 0x4137f2
cmp edx, ecx
jne 0x4137f2
mov edx, eax
sub edx, dword [esi + 0x30]
mov edi, ecx
sbb edi, dword [esi + 0x34]
add dword [esi + 0x28], edx
adc dword [esi + 0x2c], edi
jmp 0x413800
mov edi, ebp
sub edi, dword [esi + 0x30]
sbb edx, dword [esi + 0x34]
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], edx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
mov edx, edi
or edx, ebx
je 0x413833
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push 0
push 0x64
push eax
push ecx
call fcn.0046bd70
push ebx
push edi
push edx
push eax
call fcn.0046bf30
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x44]
jmp 0x41383a
mov dword [esi + 0x38], 0
test eax, eax
jne 0x413842
test ecx, ecx
je 0x413850
test ebp, ebp
jne 0x413850
cmp dword [esp + 0x40], ebp
je 0x413960
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
movsx edi, word [esp + 0x14]
push 0x47d6d8
lea ecx, [esp + 0x14]
call dword [0x4763f4]
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push 0x47e12c
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x1c
push 0xfffffffffffffff5
call ebp
lea ecx, [esp + 0x14]
push ecx
push eax
call ebx
mov eax, dword [esp + 0x10]
sub edi, dword [eax - 0xc]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
dec edi
mov word [esp + 0x44], di
mov ecx, dword [esp + 0x44]
push ecx
push 0xfffffffffffffff5
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0
call dword [0x4763f4]
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 0xc]
push 0
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov byte [esp + 0x34], 0
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [0x491c54]
cmp dword [eax + 0x68], 0
je 0x41394e
mov eax, dword [eax + 0x6c]
push eax
push 1
push 0x47e15c
call fcn.00403c30
add esp, 0xc
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 0x10