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

Disassembly:
sub esp, 0x124
call sym.vidcap60.exe_XPTheme_GetDefault
test eax, eax
je 0x4b9d0b
call sym.vidcap60.exe_XPTheme_GetDefault
cmp dword [eax], 0
je 0x4b9d0b
mov eax, dword [0x622254]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4b9d0b
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
call fcn.004b9410
add esp, 0x124
ret 0xc
push ebx
push ebp
push esi
push 0x10
call sym.vidcap60.exe__SfGetUIBrush_4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x80]
push edx
lea esi, [esp + 0x34]
mov dword [esp + 0x40], eax
call fcn.004b6380
mov esi, dword [esp + 0x13c]
mov eax, dword [esi + 0x50]
mov ebp, dword [esp + 0x134]
lea ecx, [esp + 0x6c]
push ecx
push ebp
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esi], 0x40
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x138]
mov dword [esp + 0x3c], edx
je 0x4b9d6b
mov eax, dword [esp + 0x2c]
push eax
jmp 0x4b9d70
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
push edi
mov edi, dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push 0
push 0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
push 2
push 0
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x94]
push 0
push ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
call edi
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov ecx, dword [esi + 0x8c]
mov ebp, eax
mov eax, ecx
shr eax, 4
test al, 7
mov dword [esp + 0x5c], ebp
je 0x4b9e6b
test ebp, ebp
mov edx, 2
je 0x4b9de8
test al, 1
jne 0x4b9ded
mov edx, 0x102
test cl, 4
je 0x4b9df8
or edx, 0x200
push edx
push 3
lea ebp, [esi + 0x68]
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov eax, 3
je 0x4b9e1c
test byte [esi + 0x8c], 0x20
jne 0x4b9e21
mov eax, 0x103
test byte [esi + 0x8c], 8
je 0x4b9e2f
or eax, 0x200
push eax
push 3
lea ecx, [esi + 0x78]
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov edx, dword [esp + 0x7c]
mov ebp, dword [ebp]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edx
push ebp
push eax
push ecx
mov dword [esp + 0x50], ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 6
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4b9e8c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0xb0]
test eax, eax
mov dword [esp + 0x58], 1
mov dword [esp + 0x34], 0
jbe 0x4ba938
mov edx, dword [esp + 0x140]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add edx, 0x170
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
add eax, 0x44
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc]
push 0x12
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [esp + 0x140]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp eax, ecx
sete dl
test eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], edx
jbe 0x4b9f39
cmp eax, ecx
mov dword [esp + 0x20], 6
jne 0x4b9f2a
mov dword [esp + 0x20], 4
jmp 0x4b9f49
dec eax
cmp eax, ecx
jne 0x4b9f49
mov dword [esp + 0x20], 5
jmp 0x4b9f49
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b9f49
mov dword [esp + 0x20], 2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4b9f71
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
sub edx, dword [ebp + 0x60]
mov ecx, dword [esp + 0x28]
push edx
push ebx
push ecx
push eax
call fcn.004108e0
jmp 0x4ba003
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x4b9fa5
mov eax, dword [ebp + 0x60]
mov edx, eax
imul edx, dword [esp + 0x20]
push 0xcc0020
push 0
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x64]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edx
sub ecx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4ba003
mov eax, dword [ebp]
test al, 0x40
je 0x4b9fdb
mov edx, dword [ebp + 0x60]
push 0xf
mov dword [esp + 0x28], edx
call esi
mov ecx, dword [ebp + 0x64]
push eax
mov eax, dword [esp + 0x24]
push 1
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push eax
sub ecx, eax
mov eax, dword [esp + 0x28]
mov edx, ebx
call fcn.004b7360
jmp 0x4ba003
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0x60]
push edx
mov edx, dword [ebp + 0x64]
and eax, 0x20
push eax
mov eax, dword [esp + 0x28]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
sub eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x30]
call fcn.004b6ed0
test byte [ebp], 0x40
mov dword [esp + 0x20], 0
je 0x4ba343
push 6
call esi
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push ebx
call ebp
mov eax, dword [esp + 0x2c]
test eax, eax
push 0x14
je 0x4ba208
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
dec eax
push 0
mov dword [esp + 0xc0], eax
inc eax
push 0
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xc0]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], edx
call edi
push 0x10
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
inc eax
push 0
mov dword [esp + 0xa0], eax
inc eax
push 0
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa0]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], edx
call edi
push 6
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
push 0
mov dword [esp + 0x100], eax
inc eax
push 0
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x100]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x11c], edx
call edi
push 0xf
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
push 0
push 0
inc eax
push 0
mov dword [esp + 0xec], eax
lea eax, [esp + 0xe0]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0xfc], edx
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ecx
push 0
lea eax, [edx + 2]
mov dword [esp + 0x118], ecx
inc ecx
push 0
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
mov ecx, dword [esp + 0x24]
sub eax, edx
push 0
lea edx, [eax + ecx - 4]
lea eax, [esp + 0x120]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0x140], edx
call edi
push 0xf
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x14
call esi
push eax
push ebx
call ebp
push 0x2711
call sym.vidcap60.exe__SfGetUIBrush_4
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 0xf00021
sub ecx, 4
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
dec edx
push edx
add eax, 2
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
push 0x12
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x20], 1
jmp 0x4ba3f3
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0xb0]
push edx
push 2
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
push 0
mov dword [esp + 0xc0], eax
push 0
inc eax
push ebx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
call edi
push 0x10
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
add eax, 0xfffffffe
push 0
mov dword [esp + 0xd0], eax
inc eax
push 0
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd0]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xec], edx
call edi
push 6
call esi
push eax
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
dec eax
push 0
mov dword [esp + 0xf0], eax
inc eax
push 0
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf0]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0x104], ecx
mov dword [esp + 0x10c], edx
call edi
push 0xf
call esi
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x108], eax
push 0
push 0
sub eax, ecx
mov ecx, dword [esp + 0x24]
push 0
mov dword [esp + 0x118], edx
lea edx, [eax + ecx - 3]
lea eax, [esp + 0x110]
push eax
push 2
push 0
push 0
push ebx
mov dword [esp + 0x130], edx
call edi
mov dword [esp + 0x20], 1
jmp 0x4ba3f3
mov eax, dword [esp + 0x2c]
test eax, eax
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
je 0x4ba358
mov ecx, dword [esp + 0x30]
push ecx
jmp 0x4ba360
mov edx, dword [esp + 0x80]
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
mov dword [esp + 0x134], ecx
lea ecx, [esp + 0x130]
push ecx
push 2
push 0
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x34]
push 0
push ebx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x150], eax
call edi
mov edx, dword [esp + 0x140]
test byte [edx], 0x20
je 0x4ba3bf
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x24], eax
jmp 0x4ba3c7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 0xf00021
push 1
sub ecx, eax
push ecx
dec edx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [esp + 0x30]
push eax
push ebx
call ebp
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4ba621
mov eax, dword [esp + 0x2c]
test eax, eax
mov ebp, dword [esp + 0x140]
je 0x4ba42c
mov eax, dword [ebp]
test ah, 1
jne 0x4ba42c
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x4ba42c
mov eax, 1
jmp 0x4ba42e
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, 2
add edx, ecx
mov dword [esp + 0x10], edx
sub dword [esp + 0x18], ecx
add dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
sub edx, ecx
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
je 0x4ba462
mov ecx, dword [ebp + 0x44]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ba5aa
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
sub ecx, 2
mov eax, ebp
sub eax, edx
add eax, ecx
inc ecx
dec eax
inc edx
dec ebp
push 0x2711
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ebp
call sym.vidcap60.exe__SfGetUIBrush_4
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0xf00021
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ebp, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x4ba4f5
push 0
push 4
lea ecx, [esp + 0x4c]
push ecx
jmp 0x4ba501
push 0x400
push 4
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [esp + 0x140]
test byte [eax], 0x40
je 0x4ba560
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4ba520
xor eax, eax
jmp 0x4ba52e
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 0
push eax
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push 4
add edx, ecx
push edx
add eax, 2
push eax
push ebx
call edi
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
jmp 0x4ba5e9
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4ba574
xor eax, eax
jmp 0x4ba582
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 0
push eax
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x5c]
push 4
push edx
lea eax, [ecx + eax + 3]
jmp 0x4ba5e0
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x4ba5b6
xor eax, eax
jmp 0x4ba5c0
push ebp
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x28]
push ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
add eax, ecx
push 4
push eax
mov eax, dword [esp + 0x28]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
mov ebp, dword [esp + 0x140]
je 0x4ba603
mov ecx, dword [ebp + 0x40]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, 2
sub edx, eax
add ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jmp 0x4ba6b9
push 0x11
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, 2
add ecx, eax
sub ebp, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
add edx, eax
sub ecx, eax
test ebp, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jne 0x4ba666
xor eax, eax
jmp 0x4ba670
push ebp
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x28]
push ebp
add eax, ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push 4
push eax
mov eax, dword [esp + 0x28]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call edi
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, 2
sub ecx, eax
add ebp, eax
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x140]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp]
sub edx, eax
test cl, 0x40
mov dword [esp + 0x14], edx
jne 0x4ba74d
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4ba74d
mov eax, dword [esp + 0x34]
test eax, eax
jbe 0x4ba6f1
mov edx, dword [ebp + 0x10]
dec eax
cmp eax, edx
jne 0x4ba6f1
xor ebp, ebp
jmp 0x4ba6fb
mov edx, dword [esp + 0x140]
mov ebp, dword [edx + 0x60]
test cl, 0x20
je 0x4ba70d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
mov dword [esp + 0x24], eax
jmp 0x4ba715
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0xf00021
push 1
mov ecx, ebp
sub ecx, eax
add ecx, edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
sub eax, ebp
push eax
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
mov ebp, dword [esp + 0x140]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0xb0]
inc eax
cmp eax, ecx
jb 0x4ba825
mov eax, dword [esp + 0x2c]
test eax, eax
mov ecx, 1
je 0x4ba772
mov ecx, 3
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4ba790
mov edx, dword [esp + 0x14]
push 1
push edx
mov edx, dword [esp + 0x20]
push edx
push ebx
push ecx
push eax
call fcn.004108e0
jmp 0x4ba7c1
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x4ba7c1
mov eax, dword [ebp + 0x60]
mov edx, eax
imul edx, ecx
mov ecx, dword [ebp + 0x54]
push 0xcc0020
push 0
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x64]
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ba7d6
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x60]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
test al, 0x40
jne 0x4ba825
test al, 0x20
je 0x4ba7ee
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
mov dword [esp + 0x24], edx
jmp 0x4ba7f6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 0xf00021
push 1
mov edx, ebp
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
jmp 0x4ba829
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x140]
mov eax, dword [ecx + 0x64]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
cmp edx, eax
jge 0x4ba892
mov eax, dword [ecx + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
add eax, edx
mov dword [esp + 0x90], eax
test byte [ecx], 0x40
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], edx
push 1
je 0x4ba87f
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x8c]
push eax
jmp 0x4ba88c
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
call fcn.004b6980
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4ba90f
mov eax, dword [esp + 0x140]
mov ecx, dword [eax + 0x64]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, edx
cmp eax, ebp
jl 0x4ba90f
mov edx, dword [esp + 0x10]
mov eax, ebp
sub eax, edx
cmp eax, ecx
mov dword [esp + 0x58], 0
jle 0x4ba8cb
mov eax, ecx
mov edx, ebp
sub edx, eax
mov eax, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x6c], ecx
test byte [eax], 0x40
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ebp
push 0
je 0x4ba8ff
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
jmp 0x4ba909
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
push ebx
call fcn.004b6980
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add edx, 0x58
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x140]
mov ecx, dword [edx + 0xb0]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x4b9ec1
mov eax, dword [esp + 0x140]
test byte [eax + 0x8c], 0x70
pop edi
je 0x4ba952
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 0xc