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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
xor ebx, ebx
push edi
mov esi, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
mov eax, dword [esi + 0x44]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x4b8a3c
mov edx, dword [esi]
test dh, 1
jne 0x4b8a3c
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0x5d4f14
push ecx
call sym.vidcap60.exe__SfGetTextExtent_16
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], edx
jmp 0x4b8a7c
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4b8a74
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0x5d4f14
push edx
mov dword [esp + 0x24], eax
call sym.vidcap60.exe__SfGetTextExtent_16
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
jmp 0x4b8a7f
mov eax, 8
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x4b8aa3
cmp dword [esi + 0x58], ebx
je 0x4b8a96
mov edx, dword [esi + 0x5c]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x54]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x54], ebx
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x4b8ab4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x58], ebx
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov edi, dword [esi]
mov ebx, dword [esp + 0x3c]
mov eax, ebp
sub eax, edx
and edi, 0x40
mov dword [esp + 0x18], edi
jne 0x4b8b48
mov ecx, ebx
sub ecx, eax
add ecx, 4
mov dword [esi + 0x78], ecx
lea ecx, [edx + 2]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], ebx
lea ecx, [ebp - 2]
mov dword [esi + 0x84], ecx
mov ebx, dword [esi + 0x78]
lea ecx, [esi + 0x68]
mov edi, ecx
mov dword [edi], ebx
mov ebx, dword [esi + 0x7c]
mov dword [edi + 4], ebx
mov ebx, dword [esi + 0x80]
mov dword [edi + 8], ebx
mov ebx, dword [esi + 0x84]
mov dword [edi + 0xc], ebx
mov ebx, dword [esi + 0x70]
mov edi, 4
sub edi, eax
add ebx, edi
mov dword [esi + 0x70], ebx
mov ebx, dword [ecx]
mov edi, 4
sub edi, eax
add ebx, edi
mov edi, dword [esp + 0x18]
mov dword [ecx], ebx
mov ecx, dword [esi + 0x4c]
mov ebx, dword [esp + 0x3c]
add ecx, 4
jmp 0x4b8b4e
mov ecx, dword [esi + 0x4c]
add ecx, 6
mov eax, ecx
and eax, 1
add ecx, eax
test byte [esi], 0x20
je 0x4b8b64
mov edx, ebp
sub edx, ecx
mov dword [esp + 0x38], edx
jmp 0x4b8b6b
lea ebp, [edx + ecx]
mov dword [esp + 0x40], ebp
test edi, edi
je 0x4b8bad
mov dword [esi + 0x7c], edx
mov eax, ebx
sub eax, ecx
mov dword [esi + 0x78], eax
lea eax, [esi + 0x68]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebp
mov edi, dword [esi + 0x78]
mov edx, eax
mov dword [edx], edi
mov edi, dword [esi + 0x7c]
mov dword [edx + 4], edi
mov edi, ebx
mov dword [edx + 8], edi
mov edi, ebp
mov dword [edx + 0xc], edi
mov edi, dword [esi + 0x70]
mov edx, dword [eax]
sub edi, ecx
sub edx, ecx
mov dword [esi + 0x70], edi
mov dword [eax], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, 3
lea ebp, [esi + 0x60]
mov dword [ebp], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 4], ecx
je 0x4b8bda
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4b8bda
push eax
call fcn.00416c60
mov dword [esi + 0x50], ebx
cmp dword [esi + 0x50], ebx
jne 0x4b8bf4
mov eax, dword [esi]
mov ecx, eax
push ebp
and ecx, 0x20
push ecx
and eax, 0x40
push eax
call fcn.004b8830
mov dword [esi + 0x50], eax
mov eax, dword [ebp]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], 6
call sym.vidcap60.exe_XPTheme_GetDefault
test eax, eax
je 0x4b8c83
call sym.vidcap60.exe_XPTheme_GetDefault
cmp dword [eax], ebx
je 0x4b8c83
mov eax, dword [0x622254]
cmp dword [eax + 0xc], ebx
je 0x4b8c83
test dword [esi], 0x40
je 0x4b8c83
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax + 0xc]
push 1
push 1
push edx
push ecx
call dword [eax + 0x60]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
sub edx, edi
sub edx, eax
lea edx, [edx + ecx + 5]
mov dword [esp + 0x4c], edx
jmp 0x4b8c87
mov eax, dword [esp + 0x34]
cmp dword [esi + 8], ebx
mov ecx, dword [esi + 0xb0]
jne 0x4b8d0c
cmp ecx, ebx
jbe 0x4b8dac
lea edi, [esi + 0x170]
test edi, edi
jne 0x4b8ca8
xor eax, eax
jmp 0x4b8cb2
push edi
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x34]
add ecx, eax
lea edx, [edi + 0x44]
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov eax, edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebp]
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xb0]
inc ebx
add edi, 0x58
cmp ebx, ecx
mov dword [esp + 0x34], eax
jb 0x4b8ca0
jmp 0x4b8db0
cmp ecx, ebx
mov dword [esp + 0x18], ebx
jbe 0x4b8dac
lea edi, [esi + 0x170]
mov edi, edi
test edi, edi
jne 0x4b8d28
xor eax, eax
jmp 0x4b8d32
push edi
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov al, byte [esi]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
test al, 0x40
mov eax, dword [esp + 0x38]
je 0x4b8d68
mov ebx, dword [esp + 0x4c]
sub ecx, eax
add ecx, ebx
mov ebx, dword [esp + 0x34]
add ecx, ebx
add ecx, edx
jmp 0x4b8d74
mov ebx, dword [esp + 0x34]
sub ecx, eax
add ecx, ebx
lea ecx, [ecx + edx + 0xa]
lea ebp, [edi + 0x44]
mov dword [ebp], ebx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov eax, dword [esi + 0x60]
mov ebx, dword [esi + 0xb0]
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
inc ecx
add edi, 0x58
cmp ecx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
jb 0x4b8d20
jmp 0x4b8db0
mov edx, dword [esp + 0x40]
and dword [esi + 0x8c], 0xffffff80
mov edi, dword [esp + 0x48]
push 0
push edi
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], edx
call fcn.004b81c0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4b8de6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8