Function at 0x4229a0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59515f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x410
mov eax, dword [0x5de040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x354], ecx
mov dword [ebp - 0x374], ecx
mov dword [ebp - 0x384], ecx
xor eax, eax
mov dword [ebp - 0x35c], eax
mov dword [ecx + 4], eax
mov dword [ebp - 0x360], eax
lea eax, [ecx + 0x18]
mov dword [ebp - 0x374], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
lea edi, [ecx + 0x30]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov esi, dword [0x5a44e8]
push 0x4c
call esi
mov ecx, dword [ebp - 0x354]
push 0x4d
mov dword [ecx + 8], eax
call esi
mov ecx, dword [ebp - 0x354]
push 0x4e
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [ebp - 0x354]
push 0x4f
add eax, dword [ecx + 8]
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [ebp - 0x354]
push 0
push 0
push 0
add eax, dword [ecx + 0xc]
push str.Display
mov dword [ecx + 0x14], eax
call dword [0x5a4064]
mov esi, eax
push 0xc
push esi
call dword [0x5a4068]
mov ecx, dword [ebp - 0x354]
push esi
mov dword [ecx], eax
call dword [0x5a4058]
mov dword [ebp - 0x368], 0
lea eax, [ebp - 0x368]
push eax
push 0x5bdee4
call dword [0x5a49b0]
test eax, eax
jns 0x422b1b
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x368]
test edx, edx
je 0x42307b
mov dword [ebp - 0x368], 0
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x42307b
mov esi, dword [ebp - 0x354]
xor edx, edx
mov dword [ebp - 0x36c], edx
mov dword [esi + 4], 0
mov dword [ebp - 0x358], 0
mov eax, dword [ebp - 0x368]
mov ecx, dword [eax]
lea esi, [ebp - 0x358]
mov byte [ebp - 4], 7
push esi
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, 0x887a0002
je 0x42303f
mov eax, dword [ebp - 0x358]
lea edx, [ebp - 0x2f0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 0x370], esi
nop dword [eax + eax]
mov dword [ebp - 0x364], 0
mov eax, dword [ebp - 0x358]
mov ecx, dword [eax]
lea edx, [ebp - 0x364]
mov byte [ebp - 4], 0xa
push edx
push esi
push eax
call dword [ecx + 0x1c]
cmp eax, 0x887a0002
je 0x422fe7
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 0x350]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 0x300], 0
je 0x422fb9
movaps xmm0, xmmword [0x5c75a0]
lea eax, [ebp - 0x35c]
push 0
push eax
push 0
push 7
push 7
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0x9300
push eax
push 0
push 0
push 0
push dword [ebp - 0x358]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0x9200
mov dword [ebp - 0x18], 0x9100
mov dword [ebp - 0x35c], 0x9100
call dword [0x5a4920]
mov edx, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x35c], ecx
mov eax, dword [edx + 0x40]
cmp eax, dword [edx + 0x44]
je 0x422c3e
mov dword [eax], ecx
add dword [edx + 0x40], 4
jmp 0x422c4e
lea ecx, [ebp - 0x35c]
push ecx
push eax
lea ecx, [edx + 0x3c]
call fcn.0040b860
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x420], 0x5bd9e0
call dword [0x5a4438]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x420]
mov eax, dword [ebp - 0x360]
or eax, 4
push 0
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x41c]
push 0
push eax
call dword [0x5a4364]
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x424], eax
lea ecx, [ebp - 0x41c]
call dword [0x5a445c]
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x3e4], 0
mov dword [ebp - 0x3e0], 4
mov edx, 0x5bdee0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x420]
call fcn.0041ffd0
mov ecx, dword [ebp - 0x354]
mov ecx, dword [ecx + 4]
inc ecx
push ecx
mov ecx, eax
call dword [0x5a4308]
mov edx, 0x5bdec8
mov ecx, eax
call fcn.0041ffd0
lea edx, [ebp - 0x2f0]
mov ecx, eax
call fcn.0041ffd0
mov byte [ebp - 4], 0x10
xor eax, eax
mov edx, dword [ebp - 0x3e0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x360]
or eax, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x35c], eax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x18], 7
movq qword [ebp - 0x380], xmm0
mov dword [ebp - 0x378], 0
cmp al, 2
je 0x422da7
mov eax, dword [ebp - 0x3fc]
mov ecx, dword [eax]
test ecx, ecx
je 0x422da7
cmp ecx, dword [ebp - 0x3e4]
mov eax, dword [ebp - 0x40c]
cmovb ecx, dword [ebp - 0x3e4]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x422ddd
test dl, 4
jne 0x422dd1
mov eax, dword [ebp - 0x400]
mov ecx, dword [eax]
test ecx, ecx
je 0x422dd1
mov eax, dword [ebp - 0x410]
mov edx, dword [eax]
mov eax, dword [ebp - 0x3f0]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
jmp 0x422ddd
mov ecx, dword [ebp - 0x37c]
mov edx, dword [ebp - 0x380]
test edx, edx
je 0x422deb
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403a80
mov eax, dword [ebp - 0x360]
and eax, 0xfffffffd
mov dword [ebp - 4], 0xf
or eax, 1
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x374]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x11
call fcn.00406730
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00403a20
push 0x64
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00580daf
add esp, 0xc
mov dword [ebp - 0x98], 0x68
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x2f8]
call dword [0x5a4564]
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x94]
movups xmm0, xmmword [ebp - 0x94]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x198]
mov dword [ebp - 0x1c4], 0
push 0x80
push eax
mov dword [ebp - 0x1c8], 0
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], 0
call dword [0x5a48d4]
mov edx, dword [ebp - 0x354]
add esp, 0xc
mov eax, dword [edx + 0x28]
lea ecx, [edx + 0x24]
cmp eax, dword [ecx + 8]
je 0x422f05
movups xmm0, xmmword [ebp - 0x94]
movups xmmword [eax], xmm0
add dword [ecx + 4], 0x10
jmp 0x422f18
lea edx, [ebp - 0x94]
push edx
push eax
call fcn.00423130
mov edx, dword [ebp - 0x354]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x422f41
mov ecx, 0x4c
lea esi, [ebp - 0x1c8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [edx + 0x34], 0x130
lea edi, [edx + 0x30]
mov esi, dword [ebp - 0x370]
jmp 0x422f56
lea ecx, [ebp - 0x1c8]
push ecx
push eax
mov ecx, edi
call fcn.00423290
mov edx, dword [ebp - 0x354]
mov eax, dword [ebp - 0x420]
inc dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x424], eax
lea ecx, [ebp - 0x41c]
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.004056a0
lea ecx, [ebp - 0x41c]
call dword [0x5a4430]
lea ecx, [ebp - 0x418]
call dword [0x5a4360]
lea ecx, [ebp - 0x3d0]
call dword [0x5a4408]
inc esi
mov dword [ebp - 0x370], esi
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x422b80
mov dword [ebp - 0x364], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x422b80
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x364]
test ecx, ecx
je 0x423005
mov dword [ebp - 0x364], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x36c]
inc edx
mov dword [ebp - 0x36c], edx
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x358]
test ecx, ecx
je 0x422b30
mov dword [ebp - 0x358], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x36c]
jmp 0x422b30
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x358]
test ecx, ecx
je 0x42305d
mov dword [ebp - 0x358], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x368]
test ecx, ecx
je 0x42307b
mov dword [ebp - 0x368], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d235
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret