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

Disassembly:
sub esp, 0x160
push ebx
mov ebx, dword [esp + 0x174]
mov eax, dword [ebx + 0x160]
and eax, 2
push edi
lea ecx, [ebx + 0xdc]
mov dword [esp + 0xc0], eax
je 0x585121
mov eax, dword [0x6c39bc]
mov dword [esp + 0xb8], eax
mov eax, dword [0x6c39b8]
mov dword [esp + 0xb4], eax
jmp 0x58513b
mov edx, dword [0x6c39a8]
mov dword [esp + 0xb8], edx
mov edx, dword [0x6c39c0]
mov dword [esp + 0xb4], edx
xor edi, edi
cmp ecx, edi
je 0x58666c
call sym.vidcap60.exe_XPTheme_GetDefault
test eax, eax
je 0x58518a
call sym.vidcap60.exe_XPTheme_GetDefault
cmp dword [eax], edi
je 0x58518a
mov eax, dword [0x622254]
cmp dword [eax + 0xc], edi
je 0x58518a
mov ecx, dword [esp + 0x174]
mov edx, dword [esp + 0x170]
mov eax, dword [esp + 0x16c]
push ebx
push ecx
push edx
push eax
call fcn.00583b80
pop edi
pop ebx
add esp, 0x160
ret 0x10
push ebp
mov ebp, dword [esp + 0x170]
push esi
push ebp
call dword [sym.imp.GDI32.dll_GetTextColor]
push ebp
mov dword [esp + 0xc8], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ecx, dword [ebx + 0x74]
mov edx, dword [esp + 0x178]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0xec], ecx
mov ecx, dword [edx]
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
inc eax
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
push 0xa
sar eax, 1
mov esi, 1
push ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
test byte [ebx + 0x168], 4
mov byte [esp + 0x3b], 0
je 0x585218
mov byte [esp + 0x3b], 1
mov eax, dword [ebx + 0x164]
test ah, 0x20
je 0x58522f
test ah, 0x10
mov dword [esp + 0x84], esi
jne 0x585236
mov dword [esp + 0x84], edi
cmp dword [ebx + 0x60], edi
mov dword [esp + 0x30], edi
jbe 0x586620
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x585250
cmp edi, dword [ebx + 0x64]
jb 0x585261
cmp edi, dword [ebx + 0xb8]
jb 0x586610
mov edx, dword [ebx + 0x1c4]
mov eax, edi
shl eax, 4
add edx, eax
cmp word [edx + 2], 0
mov dword [esp + 0xb8], eax
je 0x586604
mov edi, dword [ebx + 0x1c4]
add eax, edi
mov di, word [eax + 4]
mov word [esp + 0x2c], di
mov edi, dword [eax + 0xc]
test edi, edi
mov dword [esp + 0x4c], 0
je 0x5852aa
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x110], eax
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edi
mov dword [esp + 0x114], esi
movsx eax, word [edx + 2]
add eax, ecx
cmp ecx, 1
mov dword [esp + 0x18], eax
jne 0x58534d
mov dword [esp + 0xd8], eax
mov eax, dword [ebx + 0x164]
test ah, 0x20
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd8], ecx
je 0x585320
mov eax, esi
inc eax
mov dword [esp + 0xdc], eax
mov ecx, dword [0x6c39b4]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea edx, [esp + 0xdc]
push edx
push 2
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x58535d
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x178]
cmp eax, dword [ecx + 8]
jle 0x58537a
mov edx, dword [ebx + 0x60]
mov ecx, dword [esp + 0x30]
dec edx
cmp ecx, edx
jne 0x58537a
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc8]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x34], edi
je 0x5853ad
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [esp + 0x17c]
jne 0x5853a7
mov edx, dword [esp + 0x30]
cmp dword [ebx + 0x40], edx
jne 0x5853a7
mov edi, 1
jmp 0x5853a9
xor edi, edi
mov dword [esp + 0x34], edi
test edi, edi
mov dword [esp + 0x28], 0
je 0x5853c1
mov cl, byte [esp + 0x3b]
test cl, cl
je 0x5853fe
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x17c]
push eax
push ecx
push ebx
xor esi, esi
call fcn.0057fa10
test eax, eax
je 0x5853df
mov esi, 1
test esi, esi
mov dword [esp + 0x28], esi
je 0x5853fa
mov eax, dword [esp + 0xc8]
test eax, eax
jne 0x5853fa
mov dword [esp + 0x28], 2
mov eax, dword [esp + 0x18]
test byte [ebx + 0x160], 4
je 0x58540d
mov dword [esp + 0x28], edi
jmp 0x585466
test edi, edi
je 0x585466
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x58544d
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
dec ecx
inc eax
dec esi
mov dword [esp + 0x18], eax
mov eax, dword [0x6c39b4]
mov dword [esp + 0x14], esi
inc edx
push eax
lea esi, [esp + 0x14]
mov edi, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
call fcn.00580890
mov eax, dword [0x6c39b4]
push eax
lea esi, [esp + 0x14]
mov edi, ebp
call fcn.00580890
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x17c]
push 0
push edx
push eax
lea ecx, [ebx + 0x1cc]
push ecx
call dword [ebx + 0x208]
mov esi, eax
mov ax, word [esi + 0xe]
test al, 1
je 0x5854a0
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dl, byte [esi + 0xc]
xor dl, cl
and edx, 3
xor ecx, edx
mov dword [esp + 0x2c], ecx
test al, 2
je 0x5854a9
mov eax, dword [esi + 0x10]
jmp 0x5854bf
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0xbc]
jne 0x5854bf
mov eax, dword [esp + 0xc4]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, dword [esp + 0xc0]
jne 0x5854dd
mov edi, dword [esp + 0xcc]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
test byte [esi + 0xe], 4
je 0x5854f6
mov ecx, dword [esi + 0x14]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x4c]
cmp eax, 1
jne 0x5856a6
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x2c]
and edi, 3
cmp di, 1
mov ebx, ebp
jne 0x58554c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add edx, ecx
push edx
mov edx, dword [esp + 0x184]
mov edx, dword [edx + 0x1c8]
lea eax, [eax + eax*2]
shl eax, 4
mov eax, dword [edx + eax + 4]
mov edx, dword [esp + 0x14]
add eax, ecx
add eax, edx
push eax
jmp 0x585561
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, eax
sub edx, eax
push ecx
sub edx, 2
push edx
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.00580d90
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5855a0
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec ebx
inc edx
dec ecx
inc eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x180]
mov eax, dword [eax + 0x1c8]
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x585687
mov edx, dword [esp + 0x30]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x585687
mov edx, dword [esp + 0x17c]
mov ebx, dword [eax + 0x10]
imul edx, edx, 0x144
shr edx, 2
cmp di, 1
lea ebx, [ebx + edx*4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
jne 0x58562d
mov eax, dword [eax + 4]
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx + 2]
mov dword [esp + 0x88], eax
dec ecx
jmp 0x58563c
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x88], edx
sub ecx, dword [eax + 4]
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x88]
inc edi
push eax
dec edx
push ebx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], edx
call sym.vidcap60.exe__FaderInst_Move_8
mov ecx, dword [esi + 0x24]
push ecx
push 0
push 0x610
push ebx
call sym.vidcap60.exe__FaderInst_Message_16
push ebp
push ebx
call sym.vidcap60.exe__FaderInst_Draw_8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5864b2
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc edi
dec edx
mov dword [esp + 0x18], edx
jmp 0x585c62
cmp eax, 2
jne 0x5857ff
mov eax, dword [esp + 0x34]
test eax, eax
je 0x585c85
test byte [esp + 0x2c], 3
jne 0x58570a
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x180]
mov ebx, dword [esp + 0x18]
add edx, eax
lea ecx, [ecx + ecx*2]
push edx
mov edx, dword [edi + 0x1c8]
shl ecx, 4
sub ebx, dword [edx + ecx + 4]
lea ecx, [esp + 0x14]
sub ebx, eax
sub ebx, 2
push ebx
mov eax, esi
mov ebx, ebp
call fcn.00580d90
jmp 0x58573b
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add ecx, eax
push ecx
lea eax, [eax + edx + 2]
push eax
mov eax, esi
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00580d90
mov edi, dword [esp + 0x180]
mov eax, dword [edi + 0x1c8]
test eax, eax
je 0x5864b2
mov ecx, dword [esp + 0x30]
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov edx, dword [eax + ecx + 0x14]
test edx, edx
je 0x5864b2
mov ebx, dword [esp + 0x10]
mov edi, dword [edi + 0x1c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ebx
inc eax
dec edx
add ecx, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
inc ebx
mov edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
sub edi, dword [ecx + 4]
dec edi
inc edx
dec eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x17c]
lea edx, [eax + eax*2]
mov dword [esp + 0x120], edi
dec ebx
mov dword [esp + 0x12c], ebx
mov eax, dword [ecx + 0x14]
shl edx, 6
shr edx, 2
lea ecx, [esp + 0x120]
lea edi, [eax + edx*4]
push ecx
push edi
call sym.vidcap60.exe__SpinnerInst_Move_8
mov edx, dword [esi + 0x24]
push edx
push 1
push 0x610
push edi
call sym.vidcap60.exe__SpinnerInst_Message_16
push ebp
push edi
call sym.vidcap60.exe__SpinnerInst_Draw_8
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc edi
dec edx
mov dword [esp + 0x18], edx
jmp 0x585c62
cmp eax, 3
jne 0x585abf
mov eax, dword [ebx + 0x1c4]
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + eax + 0xc]
add edx, 0x10
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esp + 0xf4], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0xf8], ecx
mov ecx, dword [edx + 0x10]
push 8
push ebp
mov dword [esp + 0xf8], edi
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], ecx
call dword [sym.imp.GDI32.dll_SetTextAlign]
test edi, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax + 4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
jne 0x58589e
test edi, 2
je 0x5858c2
mov edx, dword [esp + 0x34]
test edx, edx
je 0x58589e
test edi, 1
jne 0x5858c2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ebx, ebp
lea ecx, [esp + 0x6c]
mov eax, esi
call fcn.00580d90
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x180]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x2c], 0
je 0x5858f6
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
dec ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x70]
inc eax
dec edx
inc ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], 2
mov edi, 1
jle 0x585907
mov edi, 2
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0xf8]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x20]
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x68]
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x70]
dec eax
dec ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
lea ecx, [edx + eax + 2]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0xa8], ecx
lea ecx, [eax + edx + 1]
mov edx, dword [esp + 0xb0]
mov eax, dword [ebx + 0x190]
dec edx
mov dword [esp + 0xb0], edx
mov edx, dword [ebx + 0x194]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0xb4]
push edx
push eax
dec ecx
push ebx
mov dword [esp + 0xc0], ecx
call fcn.0057f1a0
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x1bc]
test al, 0x40
je 0x5859f9
test al, al
jns 0x5859f9
mov ecx, dword [esp + 0x30]
cmp dword [ebx + 0x178], ecx
jne 0x5859f9
mov edx, dword [esp + 0x17c]
cmp dword [esp + 0x4c], edx
mov dword [esp + 0x28], 1
je 0x585a01
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0xf0]
test al, 2
je 0x585a6d
mov ecx, dword [ebx + 0x178]
lea eax, [esp + 0x160]
push eax
push ecx
push ebx
call fcn.0057f210
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x160]
push edx
push eax
push ebx
call fcn.0057f2b0
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x168]
mov edx, dword [ebx + 0x194]
sub ecx, eax
mov eax, dword [ebx + 0x190]
sub ecx, 4
push edx
mov dword [esp + 0x164], ecx
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.00404b20
test eax, eax
je 0x585a7d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x585a7d
mov dword [esp + 0x2c], 2
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x100]
push 0
dec edi
add edx, edi
push edx
mov edx, dword [esp + 0xfc]
add eax, edi
push eax
push ebp
push ecx
push edx
call fcn.004108e0
mov eax, dword [esp + 0x2c]
push 0xf
push eax
lea ecx, [esp + 0xb0]
push ecx
push ebp
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x5864b2
cmp eax, 4
jne 0x585c85
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x2c]
and edi, 3
cmp di, 1
mov ebx, ebp
jne 0x585b11
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add edx, ecx
push edx
mov edx, dword [esp + 0x184]
mov edx, dword [edx + 0x1c8]
lea eax, [eax + eax*2]
shl eax, 4
mov eax, dword [edx + eax + 4]
mov edx, dword [esp + 0x14]
add eax, ecx
add eax, edx
push eax
jmp 0x585b26
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, eax
sub edx, eax
push ecx
sub edx, 2
push edx
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.00580d90
mov eax, dword [esp + 0x34]
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x585b65
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
inc ecx
dec edx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x180]
mov eax, dword [eax + 0x1c8]
test eax, eax
je 0x585c4c
mov edx, dword [esp + 0x30]
lea edx, [edx + edx*2]
shl edx, 4
add eax, edx
mov edx, dword [eax + 0x18]
test edx, edx
je 0x585c4c
mov edx, dword [esp + 0x17c]
mov ebx, dword [eax + 0x18]
imul edx, edx, 0xec
shr edx, 2
cmp di, 1
lea ebx, [ebx + edx*4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
jne 0x585bee
mov eax, dword [eax + 4]
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx + 2]
mov dword [esp + 0x98], eax
dec ecx
jmp 0x585bfd
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x98], edx
sub ecx, dword [eax + 4]
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x98]
inc edi
push eax
dec edx
push ebx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xac], edx
call sym.vidcap60.exe__TrackbarInst_Move_8
mov ecx, dword [esi + 0x24]
push ecx
push 0
push 0x610
push ebx
call sym.vidcap60.exe__TrackbarInst_Message_16
push ebp
push ebx
call sym.vidcap60.exe__TrackbarInst_Draw_8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5864b2
mov edi, dword [esp + 0x10]
inc edi
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
jmp 0x5864b2
mov ecx, dword [esp + 0x2c]
test ch, 1
je 0x58604c
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x2c]
and edi, 3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
jne 0x585cb5
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
jmp 0x585cc2
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
add edx, eax
lea eax, [edx + ecx + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x20]
add ecx, edx
push ecx
push eax
mov eax, esi
lea ecx, [esp + 0x44]
mov ebx, ebp
call fcn.00580d90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ecx
je 0x585d39
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
dec eax
inc edx
dec ebx
inc ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], 2
mov ebx, 1
jle 0x585d4a
mov ebx, 2
cmp di, 3
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
jne 0x585d95
mov edi, dword [esi + 0x1c]
mov ecx, edx
sub ecx, eax
sar ecx, 1
sar edi, 1
test ecx, ecx
jle 0x585da4
test edi, edi
jle 0x585da4
sub ecx, edi
sub ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
sub ecx, 3
add eax, ecx
add edi, ecx
mov dword [esp + 0x74], edi
jmp 0x585da4
test di, di
jne 0x585da4
mov edi, dword [esi + 0x1c]
mov eax, edx
sub eax, edi
sub eax, 4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
lea eax, [eax + ecx + 2]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
sub eax, ebx
dec edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x48]
dec edx
lea eax, [edi + eax + 1]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x40], eax
lea eax, [edx + ecx + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
sub ecx, ebx
mov dword [esp + 0x74], eax
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x80]
mov ecx, dword [esi + 0x24]
dec edi
mov dword [esp + 0x78], eax
mov ax, word [esi + 0xe]
dec edx
test al, 8
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x28], ecx
je 0x585ee2
mov ecx, dword [esp + 0x180]
mov eax, dword [ecx + 0x1bc]
test al, 0x40
je 0x585e5e
test al, al
jns 0x585e5e
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x178], edx
jne 0x585e5e
mov eax, dword [ecx + 0x194]
mov edx, dword [ecx + 0x190]
push eax
push edx
push ecx
call fcn.0057f1a0
cmp eax, dword [esp + 0x17c]
jne 0x585e5e
mov edx, 1
jmp 0x585e60
xor edx, edx
mov ax, word [esi + 0xe]
test ah, 0xf0
jne 0x585ed6
test ah, 4
movzx ecx, word [esi + 0x26]
je 0x585e78
mov dword [esp + 0x28], ecx
jmp 0x585e8e
test edx, edx
je 0x585e82
mov dword [esp + 0x28], ecx
jmp 0x585e8e
movzx edx, word [esi + 0x24]
cmp edx, ecx
mov dword [esp + 0x28], edx
jne 0x585e9e
mov dword [esp + 0x2c], 2
mov dword [esp + 0x4c], 1
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x3c]
add edx, ebx
add edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
add edx, ebx
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x74]
add edx, ebx
add edx, ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x78]
add edx, ebx
add edx, ecx
mov dword [esp + 0x80], edx
jmp 0x585ee2
test edx, edx
je 0x585ee2
mov dword [esp + 0x2c], 2
dec ebx
test al, 8
je 0x58600c
test ah, 0xf0
jne 0x58600c
test ah, 4
je 0x58600c
push 0x2711
call sym.vidcap60.exe__SfGetUIBrush_4
mov edi, eax
test edi, edi
je 0x58600c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xe0]
push eax
push ecx
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x14
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf
mov dword [esp + 0x108], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push 0xf00021
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x104]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x50]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe0]
lea edx, [esp + 0xe0]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
inc eax
dec edx
inc ecx
dec edi
push 0xf
mov dword [esp + 0x154], eax
mov dword [esp + 0x15c], edx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x160], edi
call sym.vidcap60.exe__SfGetUIBrush_4
push eax
lea edx, [esp + 0x154]
push edx
push ebp
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + ebx]
mov eax, dword [esp + 0x4c]
push 0
add ecx, eax
push ecx
mov ecx, dword [esi + 0x18]
add edx, ebx
add edx, eax
mov eax, dword [esp + 0x30]
push edx
push ebp
push eax
push ecx
call fcn.004108e0
mov edx, dword [esp + 0x2c]
push 0xf
push edx
lea eax, [esp + 0x7c]
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x5864b2
test ch, 0x20
je 0x5862b8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], edx
push edi
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call fcn.005807e0
mov ecx, dword [esp + 0x2c]
test ch, 0x10
je 0x5861c9
xor eax, eax
mov ax, word [esi + 0xe]
test al, 8
je 0x5861c9
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov edi, eax
xor eax, eax
and edi, 0xf000
shl ecx, 1
cmp di, 0x2000
sete al
xor edx, edx
test di, di
sete dl
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov ecx, edi
sub ecx, eax
add eax, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x138], eax
mov dword [esp + 0x130], ecx
mov ecx, dword [esp + 0x178]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 4]
add edx, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x13c], eax
movzx eax, word [esi + 0xe]
mov edi, eax
shr eax, 0xb
and edi, 0x700
or edi, eax
mov eax, dword [ebx + 0x1bc]
test al, 0x40
mov dword [esp + 0x134], edx
je 0x58618f
test al, al
jns 0x58618f
mov ecx, dword [esp + 0x30]
cmp dword [ebx + 0x178], ecx
jne 0x58618f
mov edx, dword [ebx + 0x194]
mov eax, dword [ebx + 0x190]
push edx
push eax
push ebx
call fcn.0057f1a0
cmp eax, dword [esp + 0x17c]
jne 0x58618f
test edi, 0x100
jne 0x58618f
mov eax, dword [esp + 0x28]
or edi, 0x200
test eax, eax
je 0x586181
xor edi, 0x400
jmp 0x58618f
mov eax, dword [esp + 0x50]
test eax, eax
je 0x58618f
or edi, 0x400
push 0
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push edi
push 4
lea ecx, [esp + 0x138]
push ecx
push ebp
mov ebx, eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x5864b2
mov edi, dword [esp + 0x34]
test edi, edi
je 0x5861fd
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
dec eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
inc ebx
dec edx
inc eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x28]
push esi
push edx
movzx eax, cx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0
lea edx, [esp + 0x68]
push edx
push ebp
call fcn.00581030
test edi, edi
je 0x586249
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
inc edi
dec edx
inc ecx
dec eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x5864b2
cmp dword [esi], 0
je 0x5864b2
mov al, byte [esp + 0x2c]
and al, 3
cmp al, 1
jne 0x5864b2
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x58629a
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + 0x1c]
lea eax, [ecx + eax + 2]
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x58], eax
push eax
lea ecx, [esp + 0x5c]
jmp 0x5864a9
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
lea eax, [eax + edx + 3]
push ecx
mov dword [esp + 0x58], eax
push eax
lea ecx, [esp + 0x5c]
jmp 0x5864a9
mov eax, ecx
and eax, 3
cmp ax, 3
jne 0x5862ed
push 0xe
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add edx, eax
push edx
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x5864a5
cmp ax, 1
jne 0x586487
xor edi, edi
test ch, 0x10
je 0x586320
test byte [esi + 0xe], 8
je 0x586320
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x108]
sub edi, edx
shl edi, 1
add eax, edi
mov dword [esp + 0x108], eax
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add ecx, eax
lea edx, [edi + eax]
mov eax, dword [esp + 0x10]
push ecx
lea ecx, [edx + eax + 2]
push ecx
mov eax, esi
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00580d90
test edi, edi
je 0x5864b2
mov ax, word [esi + 0xe]
and ax, 0xf000
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp ax, 0x2000
sete dl
xor ebx, ebx
test ax, ax
sete bl
mov eax, edi
mov dword [esp + 0x50], edx
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x178]
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 2]
mov dword [esp + 0x140], eax
mov eax, dword [edx + 4]
add eax, ebx
mov dword [esp + 0x144], eax
lea eax, [edi + edi*2]
mov edi, dword [esp + 0x20]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x178]
sar eax, 2
add eax, edi
lea ecx, [eax + ecx + 2]
mov eax, dword [edx + 0xc]
sub eax, ebx
mov dword [esp + 0x14c], eax
movzx eax, word [esi + 0xe]
mov edi, eax
shr eax, 0xb
and edi, 0x700
mov dword [esp + 0x148], ecx
mov ecx, dword [esp + 0x180]
or edi, eax
mov eax, dword [ecx + 0x1bc]
test al, 0x40
je 0x58644c
test al, al
jns 0x58644c
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x178], edx
jne 0x58644c
mov eax, dword [ecx + 0x194]
mov edx, dword [ecx + 0x190]
push eax
push edx
push ecx
call fcn.0057f1a0
cmp eax, dword [esp + 0x17c]
jne 0x58644c
test edi, 0x100
jne 0x58644c
or edi, 0x200
test ebx, ebx
je 0x58643e
xor edi, 0x400
jmp 0x58644c
mov eax, dword [esp + 0x50]
test eax, eax
je 0x58644c
or edi, 0x400
push 0
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push ebp
call ebx
push edi
mov dword [esp + 0x54], eax
push 4
lea eax, [esp + 0x148]
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x50]
push ecx
push ebp
call ebx
jmp 0x5864b2
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add edx, eax
sub ecx, eax
push edx
sub ecx, 2
push ecx
lea ecx, [esp + 0x18]
mov ebx, ebp
mov eax, esi
call fcn.00580d90
test byte [esi + 0xe], 4
je 0x5864d2
mov eax, dword [esp + 0x180]
mov edx, dword [eax + 0x10c]
add eax, 0xdc
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x586527
mov eax, dword [esp + 0x180]
test byte [eax + 0x160], 4
je 0x5864fb
lea ecx, [esp + 0x108]
push ecx
push ebp
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x586527
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec edi
inc edx
dec ecx
inc eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
movzx eax, word [esi + 0xe]
mov esi, dword [esp + 0x180]
mov edx, dword [esi + 0x1bc]
mov ecx, eax
and ecx, 0x10
and eax, 0x20
test dl, 8
je 0x58657a
test dl, 0x10
je 0x58657a
test dl, 0x20
je 0x58657a
mov eax, dword [esi + 0x1b8]
cmp eax, dword [esi + 0x5c]
jne 0x58656a
mov edx, dword [esp + 0x17c]
inc edx
cmp eax, edx
jne 0x58656a
xor ecx, ecx
jmp 0x586582
mov edx, dword [esp + 0x17c]
xor ecx, ecx
cmp eax, edx
sete cl
xor eax, eax
test ecx, ecx
jne 0x586582
test eax, eax
je 0x5865d2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
dec eax
inc edx
dec esi
inc edi
test ecx, ecx
mov ecx, esi
jne 0x58659f
lea ecx, [edi - 1]
push 2
lea ebx, [esp + 0x11c]
lea edi, [esp + 0xec]
mov esi, ebp
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], ecx
call fcn.00580ee0
mov eax, dword [esp + 0x180]
mov ecx, dword [eax + 0x1c4]
mov edx, dword [esp + 0xb8]
movsx eax, word [edx + ecx + 2]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x180]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x178]
cmp ecx, dword [edx + 8]
jge 0x586620
mov eax, dword [ebx + 0x60]
inc edi
cmp edi, eax
mov dword [esp + 0x30], edi
jb 0x585250
mov eax, dword [esp + 0xcc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0xc4]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 8]
cmp dword [esp + 0x18], eax
jge 0x58666a
push 0
push 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 2
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x160
ret 0x10