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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x64]
lea ebx, [ebp + 0xdc]
test ebx, ebx
je 0x583785
call sym.vidcap60.exe_XPTheme_GetDefault
test eax, eax
je 0x583513
call sym.vidcap60.exe_XPTheme_GetDefault
cmp dword [eax], 0
je 0x583513
mov eax, dword [0x622254]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x583513
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push ecx
push ebp
push edx
push eax
call fcn.00583240
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0xc8]
dec eax
mov dword [esp + 0x24], eax
lea edx, [ebx + 0x18]
mov eax, dword [edx]
mov dword [esp + 8], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 8]
push esi
push edi
mov edi, dword [ebx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [0x6c39b4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 0xc]
push eax
lea esi, [esp + 0x44]
mov dword [esp + 0x50], ecx
call fcn.00580890
mov eax, dword [ebx + 0x30]
xor edi, edi
cmp eax, edi
je 0x58356b
mov edx, dword [ebx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 4]
push 0xa
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [esp + 0x70], edi
je 0x58358c
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebx + 4]
push eax
push ecx
jmp 0x583597
mov edx, dword [0x6c39c0]
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x6c39a8]
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [ebp + 0x16c], edi
jle 0x583783
mov dword [esp + 0x70], 3
jmp 0x5835d0
mov ebp, dword [esp + 0x6c]
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x34]
or esi, 0xffffffff
cmp eax, ecx
ja 0x58360d
push edi
push 0xffff
push eax
lea eax, [ebp + 0x1cc]
push eax
call dword [ebp + 0x220]
mov ebp, eax
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov ax, word [ebp + 0xe]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov word [esp + 0x20], ax
jmp 0x58361f
mov dword [esp + 0x1c], 0x5d49c0
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
xor ebp, ebp
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.00582e90
cmp dword [esp + 0x70], eax
mov dword [esp + 0x24], eax
je 0x5836cd
test eax, eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
je 0x583695
mov eax, dword [edi + 0x164]
test ah, 3
je 0x583695
mov edx, dword [0x6c39ac]
mov eax, dword [0x6c39a8]
mov edi, dword [ebx + 4]
push edx
lea esi, [esp + 0x34]
call fcn.00580890
mov dword [esp + 0x14], 1
jmp 0x5836ac
mov eax, dword [0x6c39b0]
mov edi, dword [ebx + 4]
push eax
mov eax, dword [0x6c39ac]
lea esi, [esp + 0x34]
call fcn.00580890
mov ecx, dword [0x6c39a8]
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx + 4]
push 6
add ecx, esi
push ecx
dec edx
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x20]
test ah, 0xff
je 0x583738
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push ebp
push 0
push 1
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x44]
inc eax
push esi
dec ecx
mov dword [esp + 0x60], eax
push 0
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebx + 4]
push eax
push ecx
mov dword [esp + 0x78], edx
call fcn.00581030
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push esi
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, dword [edi + 0x16c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
add esi, ebp
inc edx
cmp esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edx
jl 0x5835c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10