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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ebp
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub edx, edi
sub eax, ecx
push edx
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, ebp
mov ebx, eax
call fcn.0041d620
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0xfc], eax
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
je 0x41fa31
push esi
jmp 0x41f885
mov ebp, dword [esp + 0x18]
mov esi, dword [ecx]
test esi, esi
je 0x41f9fd
cmp dword [esi + 0x9c], 1
jne 0x41f9fd
mov eax, dword [esi]
test eax, eax
je 0x41f93b
mov ecx, dword [esi + 0x94]
push 0
push ecx
push eax
call fcn.00419800
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x41f9fd
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
sub eax, edx
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.00427520
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_OffsetRgn]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [esp + 0x10]
push 4
mov esi, eax
push ebp
push edx
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
jmp 0x41f9f0
mov eax, dword [esi + 0x70]
test eax, eax
jle 0x41f9fd
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x41f958
mov eax, dword [esi + 0x78]
test eax, eax
je 0x41f9fd
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x28]
push eax
sub ecx, edx
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.00427520
mov eax, dword [esi + 0x78]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0x74]
push eax
mov eax, dword [esp + 0x3c]
inc edx
push ecx
mov ecx, dword [esp + 0x3c]
inc eax
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov ebp, eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [esp + 0x10]
push 4
mov esi, eax
push ebp
push ecx
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
push ebp
call edi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add ecx, 4
mov edx, dword [eax + 8]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jne 0x41f881
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x41fa31
mov ecx, dword [esp + 0x14]
push 1
push ebx
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebx
call edi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret