Function at 0x4b8dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5531b7
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x188]
push edi
push eax
call fcn.00522236
push eax
mov ecx, 0x5a4808
call fcn.004eab40
xor ebp, ebp
cmp eax, ebp
je 0x4b92dc
cmp dword [eax + 8], ebp
jne 0x4b92dc
push esi
lea ecx, [esp + 0x7c]
call fcn.00528757
lea ecx, [esp + 0x8c]
mov dword [esp + 0x124], ebp
lea edi, [esp + 0x78]
mov dword [esp + 0x1c], ebp
call fcn.005280aa
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], vtable.CBitmap.0
mov edx, dword [esi + 0x1c]
mov ebx, dword [sym.imp.user32.dll_GetWindowRect]
lea ecx, [esp + 0x9c]
push ecx
push edx
mov byte [esp + 0x12c], 2
mov dword [esp + 0x3c], ebp
call ebx
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x9c]
sub eax, ecx
mov ecx, dword [esp + 0xa4]
push eax
sub ecx, edx
push ecx
push ebp
push ebp
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov ecx, dword [esp + 0x7c]
push ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x90]
call fcn.00528623
test eax, eax
je 0x4b8efa
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
sub eax, ecx
mov ecx, dword [esp + 0x60]
sub ecx, edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x30]
call fcn.00528920
test eax, eax
je 0x4b8efa
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], 1
call fcn.004043e0
mov dword [esp + 0x34], eax
lea edi, [esp + 0x8c]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xbc]
push ecx
push edx
call ebx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.user32.dll_GetClientRect]
lea edx, [esp + 0xac]
push edx
mov ecx, esi
call fcn.00528443
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00527f0c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], vtable.CRgn.0
lea ebx, [esi + 0x110]
push ebx
mov byte [esp + 0x128], 3
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
jne 0x4b8fa0
push ebx
call dword [sym.imp.gdi32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.00528920
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x7c]
call fcn.0052837b
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call dword [edx + 0x18c]
mov ecx, dword [esi + 0x188]
push ecx
call fcn.00522236
push eax
mov ecx, 0x5a4808
call fcn.004eab40
cmp dword [eax + 8], ebp
je 0x4b8fe1
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.user32.dll_SetRectEmpty]
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x18c]
call fcn.0047a8f0
mov ecx, dword [esi + 0x54]
mov ebx, dword [esp + 0x38]
mov edx, dword [eax]
push ecx
push esi
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0x54]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x58]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x5c]
mov dword [ecx + 0xc], ebx
push edi
mov ecx, eax
call dword [edx + 0xb8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x60]
or ebp, 0xffffffff
or ebx, 0xffffffff
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x4b9147
push 1
mov ecx, edi
call fcn.00527e15
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov edx, dword [edi]
push 0x5a7a3c
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x17c]
cmp ebp, 0xffffffff
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x44]
mov byte [esp + 0x124], 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
je 0x4b90a3
mov dword [esp + 0x70], ebp
cmp ebx, 0xffffffff
je 0x4b90ac
mov dword [esp + 0x68], ebx
push 0
push 0xfffffffffffffffe
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push 0x24
lea ebx, [esp + 0x6c]
push ebx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x68]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push 0
mov ecx, edi
call fcn.0052837b
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x1d4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b9258
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
call fcn.00527efc
cmp eax, 1
je 0x4b923f
cmp eax, 2
je 0x4b920c
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
jmp 0x4b921c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b9207
mov edx, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [ebp + 0x1c]
test eax, eax
mov dword [esp + 0x28], edx
je 0x4b91a8
cmp ebx, 0xffffffff
jne 0x4b9178
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.00484c70
mov ebx, dword [eax + 8]
add ebx, 2
jmp 0x4b91f2
lea ecx, [esp + 0x10c]
push ecx
mov ecx, ebp
call fcn.00484c70
mov edx, dword [eax + 8]
add edx, 2
cmp ebx, edx
jg 0x4b91f2
lea eax, [esp + 0xdc]
push eax
mov ecx, ebp
call fcn.00484c70
mov ebx, dword [eax + 8]
add ebx, 2
jmp 0x4b91f2
cmp dword [esp + 0x10], 0xffffffff
jne 0x4b91c6
lea ecx, [esp + 0xfc]
push ecx
mov ecx, ebp
call fcn.00484c70
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x4b91f2
lea eax, [esp + 0xcc]
push eax
mov ecx, ebp
call fcn.00484c70
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax]
jl 0x4b91f2
lea edx, [esp + 0xec]
push edx
mov ecx, ebp
call fcn.00484c70
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4b9143
mov ebp, dword [esp + 0x10]
jmp 0x4b903e
jmp fcn.0051c508
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
push 0xcc0020
push edx
push edi
lea ebx, [esp + 0x98]
push ebx
sub eax, edx
push eax
sub ecx, edi
push ecx
push edx
push edi
lea ecx, [esp + 0x98]
call fcn.00404430
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b924a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x90]
push eax
push ecx
call fcn.005289a9
mov ecx, esi
call fcn.0052216c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x124], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b9285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x124], 2
mov dword [esp + 0x20], esi
call fcn.00528977
lea ecx, [esp + 0x2c]
mov byte [esp + 0x124], 1
mov dword [esp + 0x2c], esi
call fcn.00528977
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 0
call fcn.005286a1
lea ecx, [esp + 0x78]
mov dword [esp + 0x124], 0xffffffff
call fcn.005287b2
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x118
ret