Function at 0x4a6050
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x190
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4958f0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_EnumDisplayMonitors]
sub esp, 0x10
call fcn.00492530
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4918
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], 0x571e04
mov dword [esp], eax
call fcn.00493590
call fcn.00492450
mov esi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x491a
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], 0x573220
mov dword [esp], eax
call fcn.00493590
mov eax, dword [ebx]
mov dword [esp + 8], 0x11
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x50]
sub esp, 0xc
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x491d
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x571d8c
call fcn.00493590
lea edx, [ebp - 0xe8]
xor eax, eax
mov ecx, 0x37
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, 0xdc
mov word [ebp - 0xa4], ax
mov dword [esp + 8], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [sym.imp.user32.dll_EnumDisplaySettingsW]
sub esp, 0xc
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4922
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x164]
mov dword [esp + 4], 0x574e44
mov dword [esp + 8], eax
call fcn.00493590
mov dword [ebp - 0x164], 0x7c
mov eax, dword [ebx]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0x30]
sub esp, 8
mov dword [ebp - 0x184], eax
call fcn.0054f6e0
mov edx, dword [ebp - 0x184]
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4926
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x571d68
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4927
mov eax, dword [ebp - 0x164]
mov dword [esp + 4], 0x574e6d
cmp eax, 0x7c
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4928
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], 0x4100e
cmp eax, 0x4100e
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], 0x574e80
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x492a
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0x573dd0
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x492c
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], 0x573df0
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x492e
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0x574ea4
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4930
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0x574ec8
cmp eax, 0x20
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4932
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x574eec
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4935
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x154]
mov dword [esp + 4], 0x574f22
mov dword [esp + 0xc], edx
shr eax, 3
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x180], edx
add eax, 4
cmp eax, 0x1c
jb 0x4a63c7
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x178], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x492970
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [eax + 0x20]
sub esp, 0x14
mov dword [ebp - 0x184], eax
call fcn.0054f6e0
mov edx, dword [ebp - 0x184]
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x493d
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x574ad4
call fcn.00493590
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x4a6620
mov edx, dword [ebx]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x170]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x174]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [edx + 0x54]
sub esp, 0x18
mov dword [ebp - 0x184], eax
call fcn.0054f6e0
mov edx, dword [ebp - 0x184]
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4946
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x573c0c
call fcn.00493590
mov eax, dword [ebx]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0x30]
sub esp, 8
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4948
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x571d68
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4949
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x174]
mov dword [esp + 4], 0x574f7b
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x494b
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x170]
mov dword [esp + 4], 0x574f98
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x494d
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x16c]
mov dword [esp + 4], 0x574fb8
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x494f
mov eax, dword [ebp - 0x110]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], 0x574eec
mov dword [esp + 8], edx
cmp dword [ebp - 0x168], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00493590
mov dword [esp], esi
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4940
call fcn.00492d60
mov dword [esp], 0x574f40
call fcn.00492ff0
jmp 0x4a65fb