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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x12c], eax
je 0x40da9d
push esi
push edi
mov esi, 0x44ca4c
mov dword [ebp - 0x44], eax
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x128], eax
mov byte [ebx + 0x130], al
mov al, byte [ebp + 8]
mov byte [ebx + 0x132], al
mov al, byte [ebp + 0x10]
mov byte [ebx + 0x133], al
mov al, byte [ebp + 0xc]
mov byte [ebx + 0x134], al
call fcn.0043c3a2
dec eax
mov ecx, dword [ebx + 0x12c]
neg eax
lea edi, [ebp - 0x34]
mov esi, 0x44ca4c
sbb al, al
inc al
mov byte [ebx + 0x135], al
mov al, byte [ebp + 0x14]
mov byte [ebx + 0x136], al
lea eax, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00420db4
mov esi, dword [ebx + 0x108]
cmp esi, dword [ebx + 0x10c]
je 0x40d06d
mov ecx, esi
call fcn.0040ba48
add esi, 0x10
cmp esi, dword [ebx + 0x10c]
jne 0x40d055
mov esi, dword [ebx + 0x108]
mov dword [ebx + 0x10c], esi
mov esi, dword [ebx + 0x114]
cmp esi, dword [ebx + 0x118]
je 0x40d099
mov ecx, esi
call fcn.0040ba48
add esi, 0x10
cmp esi, dword [ebx + 0x118]
jne 0x40d081
mov esi, dword [ebx + 0x114]
mov ecx, ebx
mov dword [ebx + 0x118], esi
call fcn.0040b967
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x30]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [ebx + 0x12c]
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
cmp esi, 2
je 0x40d728
cmp esi, 3
je 0x40d728
mov eax, dword [ebx + 0x158]
xor edi, edi
mov dword [ebx + 0x15c], eax
lea eax, [ebx + 0x164]
mov ecx, dword [ebx + 0x12c]
mov dword [eax], edi
cmp esi, 1
jne 0x40d22c
push eax
call fcn.00421a2c
test al, al
je 0x40d239
mov ecx, ebx
call fcn.0040b9d6
test al, al
je 0x40d239
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_GetGuiResources]
lea ecx, [ebx + 0x168]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x12c]
push edi
call fcn.00422392
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x4c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x20]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [ebx + 0x158]
cmp eax, dword [ebx + 0x15c]
jne 0x40d1c3
cmp esi, 4
jne 0x40d241
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x40dab0
mov ecx, ebx
call fcn.0040cf16
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40d241
cmp eax, 0x3e8
je 0x40d241
push 5
push esi
push dword [ebx + 0x38]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 5
push esi
push dword [ebx + 0x44]
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 5
push esi
push dword [ebx + 0x48]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 5
push esi
push dword [ebx + 0x50]
push dword [ebx + 0x20]
call dword [sym.imp.GDI32.dll_CombineRgn]
jmp 0x40da76
call fcn.00421813
test al, al
je 0x40d114
or eax, 0xffffffff
jmp 0x40da9b
lea esi, [ebx + 0x28]
cmp dword [esi], edi
je 0x40d263
push 4
push dword [esi]
push dword [ebx + 0xc]
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp dword [esi], edi
je 0x40d263
push esi
call fcn.0043b63c
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_GetGuiResources]
mov ecx, dword [ebx + 0x12c]
lea edi, [ebp - 0x14]
mov esi, 0x44ca4c
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00420b77
test al, al
je 0x40d2a0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x40d2b8
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 0x44ca4c
mov dword [ebp - 0x44], eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_GetRgnBox]
push 4
pop esi
push esi
push dword [ebx]
push dword [ebx + 0xc]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
push dword [ebx + 0x1c]
push dword [ebx]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_CombineRgn]
xor edi, edi
inc edi
push edi
push dword [ebp - 0x38]
push dword [ebp - 0x44]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebx + 0x24]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0040e020
push edi
push dword [ebx + 0xc]
push dword [ebp - 0x44]
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 5
push 0
push dword [ebx + 0xc]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
push dword [ebx]
push dword [ebx + 0xc]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
push dword [ebx + 4]
push dword [ebx + 0xc]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push esi
push dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
push eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
push dword [ebx + 0x24]
push dword [ebx + 0xc]
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
push dword [ebx + 0x24]
push dword [ebx]
push dword [ebx + 0x2c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x12c]
call fcn.004222f8
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
push dword [ebx + 0x20]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push edi
push dword [ebx]
push dword [ebx + 0x1c]
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
push dword [ebx]
push dword [ebx + 0x20]
push dword [ebx + 0x20]
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp byte [ebp + 0xc], 0
je 0x40d48d
push esi
push dword [ebx + 0x1c]
push dword [ebx]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 2
push dword [ebx + 0x1c]
push dword [ebx + 4]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
jmp 0x40d4f5
cmp byte [ebx + 0x135], 0
jne 0x40d4f5
push 0x44ca4c
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push edi
push dword [ebx + 0x1c]
mov dword [ebp - 0x40], eax
push dword [ebx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp eax, edi
jle 0x40d4e5
push 2
push dword [ebp - 0x40]
push dword [ebx + 4]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
push dword [ebp - 0x40]
push dword [ebx + 0x1c]
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
push dword [ebp - 0x40]
push dword [ebx]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp dword [ebp - 0x40], 0
je 0x40d4f5
lea eax, [ebp - 0x40]
push eax
call fcn.0043b63c
pop ecx
mov eax, dword [ebp - 0x30]
neg eax
push eax
mov eax, dword [ebp - 0x34]
neg eax
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x12c]
call fcn.00422464
push dword [ebx + 0x54]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d54e
mov ecx, dword [ebx + 0x12c]
push eax
push dword [ebp - 0x38]
lea eax, [ebx + 0x168]
push eax
call fcn.004223ea
push 5
push 0
push dword [ebp - 0x38]
push dword [ebx + 0x54]
call dword [sym.imp.GDI32.dll_CombineRgn]
lea eax, [ebx + 0x68]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0x78]
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0x88]
push eax
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0x98]
push eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xa8]
push eax
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xb8]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xc8]
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xd8]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xe8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [ebx + 0xf8]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_GetRgnBox]
cmp dword [ebp - 0x3c], 0
je 0x40d5f7
lea eax, [ebp - 0x3c]
push eax
call fcn.0043b63c
pop ecx
cmp dword [ebp - 0x38], 0
je 0x40d607
lea eax, [ebp - 0x38]
push eax
call fcn.0043b63c
pop ecx
push dword [ebx + 0xc]
push dword [ebx + 0x40]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d61e
or dword [ebx + 0x128], 0x40
push dword [ebx]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d66c
push dword [ebx + 0x38]
or dword [ebx + 0x128], edi
call fcn.0043c692
pop ecx
test al, al
je 0x40d64c
or dword [ebx + 0x128], 0x100
jmp 0x40d66c
push dword [ebx + 0x38]
call fcn.0043c662
pop ecx
test al, al
jne 0x40d665
push dword [ebx]
call fcn.0043c662
pop ecx
test al, al
je 0x40d66c
or dword [ebx + 0x128], 0x20
push dword [ebx + 4]
push dword [ebx + 0x34]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d6bd
push dword [ebx + 0x34]
or dword [ebx + 0x128], 2
call fcn.0043c692
pop ecx
test al, al
je 0x40d69c
or dword [ebx + 0x128], 0x80
jmp 0x40d6bd
push dword [ebx + 0x34]
call fcn.0043c662
pop ecx
test al, al
jne 0x40d6b6
push dword [ebx + 4]
call fcn.0043c662
pop ecx
test al, al
je 0x40d6bd
or dword [ebx + 0x128], 8
push dword [ebx + 8]
push dword [ebx + 0x3c]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d6d3
or dword [ebx + 0x128], esi
push dword [ebx + 0x1c]
push dword [ebx + 0x44]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d6ea
or dword [ebx + 0x128], 0x10
push dword [ebx + 0x20]
push dword [ebx + 0x50]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40d704
or dword [ebx + 0x128], 0x200
push esi
push dword [ebx + 4]
push dword [ebx + 0x34]
push dword [ebx + 0x30]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_GetGuiResources]
jmp 0x40da76
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x54]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x4c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
cmp dword [ebp - 0x3c], 3
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x40d7fc
push 0
lea eax, [ebp - 0x14]
push eax
push 0x467
push dword [ebx + 0x124]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x40d7e8
mov eax, dword [ebx + 0x128]
or eax, 1
mov dword [ebx + 0x128], eax
jmp 0x40da9b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x14]
jmp 0x40d7ff
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov ecx, eax
mov eax, dword [ebp - 0x30]
neg eax
mov dword [ebp - 0x38], ecx
push eax
mov eax, dword [ebp - 0x34]
neg eax
push eax
push ecx
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebp - 0x38]
mov ecx, dword [ebx + 0x12c]
call fcn.00422464
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_OffsetRgn]
cmp byte [ebp + 0x10], 0
jne 0x40d864
mov byte [ebx + 0x130], 1
mov ecx, dword [0x493d20]
mov eax, ecx
mov edx, dword [0x493d1c]
sub eax, edx
sar eax, 2
test eax, eax
jne 0x40d864
mov byte [ebp - 0x45], al
jmp 0x40d8aa
push ebx
push 0x40dab0
mov ecx, ebx
mov byte [ebp - 0x45], 1
call fcn.0040cf16
test al, al
jne 0x40d89e
push 5
push 0
push dword [ebx + 0x44]
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 5
push 0
push dword [ebx + 0x48]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
jmp 0x40da66
mov ecx, dword [0x493d20]
mov edx, dword [0x493d1c]
sub ecx, edx
sar ecx, 2
test ecx, ecx
je 0x40d8c5
cmp byte [ebx + 0x132], 0
jne 0x40d8c5
push 1
push dword [ebp - 0x38]
push dword [ebx]
jmp 0x40d8cc
push 5
push 0
push dword [ebp - 0x38]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp byte [ebp - 0x45], 0
push 1
je 0x40d96f
push dword [ebx + 0xc]
push dword [ebp - 0x38]
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push dword [ebx]
push dword [ebx + 0xc]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebx + 0x24]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0040e020
push 1
push dword [ebx + 0x24]
push dword [ebp - 0x38]
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push dword [ebx + 0x24]
push dword [ebx]
push dword [ebx + 0x2c]
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_OffsetRgn]
jmp 0x40d9c0
push dword [ebx + 0x24]
push dword [ebp - 0x38]
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push dword [ebx + 0x24]
push dword [ebx]
push dword [ebx + 0x2c]
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push 5
push 0
push dword [ebx]
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_SetRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push 1
push dword [ebx]
push dword [ebx + 0x1c]
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp byte [ebp + 0xc], 0
je 0x40da1b
push 2
push dword [ebx + 0x1c]
push dword [ebx + 4]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push dword [ebx + 4]
push dword [ebx + 0xc]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push dword [ebx + 4]
push dword [ebx + 0x34]
push dword [ebx + 0x30]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebx + 0x1c]
push dword [ebx + 0x44]
call dword [sym.imp.GDI32.dll_EqualRgn]
test eax, eax
jne 0x40da43
or dword [ebx + 0x128], 0x10
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x12c]
call fcn.004222f8
cmp dword [ebp - 0x38], 0
je 0x40da76
lea eax, [ebp - 0x38]
push eax
call fcn.0043b63c
pop ecx
cmp dword [ebp - 0x44], 0
je 0x40da86
lea eax, [ebp - 0x44]
push eax
call fcn.0043b63c
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_GetGuiResources]
mov eax, dword [ebx + 0x128]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret 0x10