Function at 0x4b0990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c708
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
lea ecx, [esp + 0x28]
call fcn.004139f0
mov ecx, esi
call fcn.00410aa0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b09f3
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00410aa0
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x4b09fe
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov esi, dword [ebp + 8]
lea edx, [esi + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea edi, [ebx + 4]
mov ecx, edi
call fcn.00410b40
test eax, eax
je 0x4b0a4f
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00410ba0
lea ecx, [esp + 0x28]
call fcn.0040fe70
cmp dword [esp + 0x40], eax
jne 0x4b0a48
lea ecx, [esp + 0x28]
call fcn.00415ef0
cmp dword [esp + 0x3c], eax
je 0x4b0a4f
mov ecx, edi
call fcn.004f53b3
cmp dword [ebx + 0x18], 0
jne 0x4b0afd
cmp dword [ebx + 0x14], 0
jne 0x4b0afd
mov esi, dword [ebx]
call fcn.0044e090
cmp dword [eax + 0x88], 0
jne 0x4b0afa
mov ecx, edi
call fcn.004f53b3
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0043f130
sub esp, 0x10
mov eax, esp
xor esi, esi
mov dword [esp + 0x98], esi
mov edi, dword [esp + 0x28]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1a0]
mov dword [eax], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 0xc], edi
lea eax, [esp + 0x48]
push eax
call edx
call fcn.004afda0
lea ecx, [esp + 0x38]
mov dword [esp + 0x88], 0xffffffff
call fcn.0043f270
mov dword [ebx + 0xc], esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
jne 0x4b0b4b
mov ecx, edi
call fcn.00410b40
test eax, eax
je 0x4b0b4b
push edi
push esi
lea eax, [esp + 0x70]
push eax
call fcn.0043f7c0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.00410ad0
lea ecx, [esp + 0x68]
call fcn.0043f8e0
jmp 0x4b0caf
lea ecx, [esp + 0x38]
call fcn.004f4b7f
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8c], 1
call fcn.00410b70
mov ecx, edi
call fcn.00410b40
test eax, eax
jne 0x4b0bb0
lea ecx, [esp + 0x28]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x2c]
call fcn.00415ef0
push eax
push esi
mov ecx, edi
call fcn.00415e40
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.00410b10
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0040e200
mov dword [esp + 0x10], vtable.CRgn.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 2
call fcn.004139f0
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x14]
call fcn.004f535b
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
call fcn.004f4d64
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1a0]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x48]
push eax
call edx
push 0
lea ecx, [esp + 0x3c]
call fcn.004f4d64
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0xcc0020
push eax
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x28]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x2c]
call fcn.00415ef0
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00410ad0
push edi
lea ecx, [esp + 0x3c]
call fcn.00410b10
call fcn.004afda0
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CRgn.0
call fcn.0040e260
lea ecx, [esp + 0x38]
mov dword [esp + 0x88], 0xffffffff
call fcn.004f5108
mov dword [ebx + 0xc], 0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4