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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7945
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20c4
call fcn.004bb1a0
mov eax, dword [0x503298]
xor eax, esp
mov dword [esp + 0x20c0], eax
push ebx
push esi
push edi
mov eax, dword [0x503298]
xor eax, esp
push eax
lea eax, [esp + 0x20d8]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
push 0
push ebx
push dword [edi + 0x44]
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
push eax
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [0x50909c], 0
mov dword [esp + 0x50], eax
je 0x49b11d
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x8c]
push eax
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x49b493
mov dword [esp + 0x64], 0x50909c
mov byte [esp + 0x68], 0
mov byte [0x50909c], 1
and dword [esp + 0x20e0], 0
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0x94]
mov ebx, dword [esp + 0x9c]
mov ecx, dword [edi + 4]
sub edx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
sub ebx, esi
mov dword [esp + 0x14], edx
call fcn.00461951
neg al
sbb al, al
inc al
mov byte [esp + 0x20], al
je 0x49b1ae
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
and dword [esp + 0x10], 0
and dword [esp + 0x24], 0
sub ebx, dword [esp + 0x7c]
sub edx, dword [esp + 0x80]
mov dword [esp + 0x14], edx
test ebx, ebx
jle 0x49b464
test edx, edx
jle 0x49b464
mov ecx, edi
call fcn.004961e5
push edx
push ebx
push dword [esp + 0x28]
lea ecx, [edi + 0x88]
call fcn.0049aa16
lea ecx, [esp + 0x7c]
mov dword [esp + 0x30], eax
call fcn.0040cf86
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x20e0], 1
and dword [esp + 0x54], 0
and dword [esp + 0x58], 0
cmp dword [esp + 0x18], 3
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ecx
jne 0x49b355
cmp byte [esp + 0x20], 0
jne 0x49b355
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 1
mov esi, eax
mov eax, dword [esp + 0x2c]
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0xcc]
push eax
push 0x2000
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_GetRegionData]
dec eax
cmp eax, 0x1fff
ja 0x49b355
cmp dword [esp + 0xd0], 1
jne 0x49b355
mov eax, dword [esp + 0xe4]
sub eax, dword [esp + 0xdc]
cmp eax, ebx
jl 0x49b355
mov eax, dword [esp + 0xe8]
sub eax, dword [esp + 0xe0]
cmp eax, dword [esp + 0x14]
jl 0x49b355
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0x10]
dec eax
mov dword [esp + 0x18], eax
js 0x49b3d3
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xf4]
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + edx]
cmp dword [eax], ecx
mov ecx, dword [esp + 0x14]
jg 0x49b359
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
lea eax, [ecx + esi]
cmp dword [esp + 0x1c], eax
jg 0x49b359
mov eax, dword [esp + 0x34]
mov ecx, edx
cmp edx, dword [eax - 8]
cmovl ecx, dword [eax - 8]
mov eax, dword [eax - 4]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x2c], ecx
sub eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x54]
sub ecx, edx
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x48]
call fcn.0044c361
push eax
lea ecx, [esp + 0x80]
call fcn.00425b94
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
add eax, 0x10
dec dword [esp + 0x18]
mov dword [esp + 0x34], eax
jns 0x49b2c1
jmp 0x49b3d3
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
call fcn.00425b56
mov ecx, dword [esp + 0x14]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x4c], ebx
call fcn.00425b94
cmp byte [esp + 0x20], 0
je 0x49b3d3
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.00425b64
call fcn.00425b7c
test al, al
je 0x49b3d3
mov esi, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x1c]
call fcn.0041f2f4
push eax
push dword [esp + 0x38]
mov ecx, esi
call fcn.00428447
lea ecx, [esp + 0x34]
call fcn.00425b7c
test al, al
jne 0x49b3ab
mov esi, dword [esp + 0x10]
call fcn.00495667
mov ecx, dword [edi + 4]
call fcn.00463127
mov ebx, dword [esp + 0x24]
mov ecx, ebx
neg ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x38]
push ecx
push dword [esp + 0x38]
neg esi
mov dword [esp + 0x44], esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, eax
mov dword [esp + 0x18], esi
push esi
mov ecx, edi
mov byte [esp + 0x20e4], 2
call fcn.004956ce
mov byte [esp + 0x20e0], 1
test esi, esi
je 0x49b431
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp byte [edi + 0x40], 0
jne 0x49b45b
movzx eax, byte [edi + 0x78]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
push ebx
push dword [esp + 0x30]
mov ecx, dword [eax]
push dword [esp + 0x64]
push dword [edi + 0x44]
call fcn.004997d9
lea ecx, [esp + 0x7c]
call fcn.0040971a
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x8c]
push eax
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_EndPaint]
mov byte [0x50909c], 0
call fcn.004ab6df
call fcn.0040e28e
mov dword [edi + 0x54], eax
mov ecx, dword [esp + 0x20d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20c0]
xor ecx, esp
call fcn.004a40c7
mov esp, ebp
pop ebp
ret