Function at 0x422a50
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 0x594fbf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x410
mov eax, dword [0x5de00c]
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 [sym.imp.USER32.dll_GetSystemMetrics]
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 [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
push 0xc
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x354]
push esi
mov dword [ecx], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x368], 0
lea eax, [ebp - 0x368]
push eax
push 0x5bdccc
call dword [sym.imp.dxgi.dll_CreateDXGIFactory]
test eax, eax
jns 0x422bcb
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x368]
test edx, edx
je 0x423115
mov dword [ebp - 0x368], 0
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
jmp 0x423115
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 0x4230d9
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 0x423081
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 0x423053
movaps xmm0, xmmword [0x5c7370]
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 [sym.imp.d3d11.dll_D3D11CreateDevice]
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 0x422cee
mov dword [eax], ecx
add dword [edx + 0x40], 4
jmp 0x422cfe
lea ecx, [ebp - 0x35c]
push ecx
push eax
lea ecx, [edx + 0x3c]
call fcn.0040b6b0
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x420], 0x5bd7c8
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
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 [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
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 [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
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, 0x5bdcc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x420]
call fcn.004200e0
mov ecx, dword [ebp - 0x354]
mov ecx, dword [ecx + 4]
inc ecx
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int_]
mov edx, 0x5bdcc4
mov ecx, eax
call fcn.004200e0
lea edx, [ebp - 0x2f0]
mov ecx, eax
call fcn.004200e0
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 0x422e57
mov eax, dword [ebp - 0x3fc]
mov ecx, dword [eax]
test ecx, ecx
je 0x422e57
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 0x422e8d
test dl, 4
jne 0x422e81
mov eax, dword [ebp - 0x400]
mov ecx, dword [eax]
test ecx, ecx
je 0x422e81
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 0x422e8d
mov ecx, dword [ebp - 0x37c]
mov edx, dword [ebp - 0x380]
test edx, edx
je 0x422e9b
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004039f0
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.00406550
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00403990
push 0x64
lea eax, [ebp - 0x94]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x68
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x2f8]
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
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 [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, dword [ebp - 0x354]
add esp, 0xc
mov eax, dword [edx + 0x28]
lea ecx, [edx + 0x24]
cmp eax, dword [ecx + 8]
je 0x422fb5
movups xmm0, xmmword [ebp - 0x94]
movups xmmword [eax], xmm0
add dword [ecx + 4], 0x10
jmp 0x422fc8
lea edx, [ebp - 0x94]
push edx
push eax
call fcn.004231d0
mov edx, dword [ebp - 0x354]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x422ff1
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 0x423006
lea ecx, [ebp - 0x1c8]
push ecx
push eax
mov ecx, edi
call fcn.00423330
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]
call fcn.004052a0
lea ecx, [ebp - 0x418]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
inc esi
mov dword [ebp - 0x370], esi
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x364]
test eax, eax
je 0x422c30
mov dword [ebp - 0x364], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x422c30
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x364]
test ecx, ecx
je 0x42309f
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 0x422be0
mov dword [ebp - 0x358], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x36c]
jmp 0x422be0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x358]
test ecx, ecx
je 0x4230f7
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 0x423115
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.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret