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

Disassembly:
push 0xffffffffffffffff
push 0x557040
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov esi, ecx
xor ecx, ecx
mov eax, ebp
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dcb1e
add esp, 4
xor edx, edx
xor edi, edi
mov ebx, eax
test ebp, ebp
jle 0x4c909b
mov ecx, dword [esp + 0x88]
sub ecx, ebx
mov dword [esp + 0x88], ebp
mov ebp, dword [ecx + eax + 4]
add edx, dword [ecx + eax]
add edi, ebp
mov dword [eax], edx
mov dword [eax + 4], edi
add eax, 8
sub dword [esp + 0x88], 1
mov dword [esp + 0x30], ebp
jne 0x4c9075
mov ebp, dword [esp + 0x8c]
lea ecx, [esp + 0x4c]
call fcn.004139f0
mov edi, dword [esi]
lea ecx, [esp + 0x4c]
add edi, 0x50
call fcn.004139f0
push eax
mov eax, dword [edi]
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
call fcn.0040e200
mov edi, vtable.CRgn.0
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 0
call fcn.004139f0
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x20]
call fcn.004f535b
lea ecx, [esp + 0x14]
call fcn.0040e200
mov dword [esp + 0x14], edi
push 1
push ebp
push ebx
mov byte [esp + 0x84], 1
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.004f535b
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004f4e6a
lea ecx, [esp + 0x3c]
call fcn.004139f0
lea ecx, [esp + 0x3c]
call fcn.004139f0
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea ecx, [esp + 0x24]
call fcn.0040e430
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 2
call fcn.0040fe70
push eax
lea ecx, [esp + 0x40]
call fcn.00415ef0
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.00415e40
lea eax, [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x64]
push ecx
call fcn.0043f7c0
mov edx, dword [esp + 0x80]
mov byte [esp + 0x78], 3
mov eax, dword [edx + 0x1c]
mov ebp, dword [eax + 0xe4]
mov edi, dword [ebp]
lea ecx, [esp + 0x3c]
add edi, 0x18
call fcn.0040fe70
push eax
lea ecx, [esp + 0x40]
call fcn.00415ef0
push eax
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.00410170
mov ecx, dword [esp + 0x84]
mov edx, dword [eax]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebp
call edx
push 0xcc0020
push 0
mov edi, eax
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x50]
call fcn.00415ef0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00410ad0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004f4d64
push ebx
call fcn.004dcb13
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 2
call fcn.0043f8e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 1
call fcn.0040e1e0
mov byte [esp + 0x78], 0
mov esi, vtable.CRgn.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0040e260
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.0040e260
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x10