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

Disassembly:
sub esp, 0x164
push ebx
mov ebx, dword [esp + 0x178]
mov eax, dword [ebx + 0x160]
push ebp
push esi
mov esi, 1
and eax, 2
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0xbc], eax
je 0x583bcb
mov eax, dword [0x6c39bc]
mov edx, dword [0x6c39b8]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xc4], edx
jmp 0x583be4
mov ecx, dword [0x6c39a8]
mov eax, dword [0x6c39c0]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x164]
test ah, 0x20
je 0x583bf4
test ah, 0x10
jne 0x583bf6
xor esi, esi
mov ebp, dword [esp + 0x178]
push ebp
mov dword [esp + 0x7c], esi
call dword [sym.imp.GDI32.dll_GetTextColor]
push ebp
mov dword [esp + 0xd0], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
test esi, esi
mov ecx, dword [ebx + 0x74]
mov edx, dword [esp + 0x17c]
mov dword [esp + 0xf0], ecx
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
je 0x583c51
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xd8]
inc eax
cdq
sub eax, edx
push 0xa
sar eax, 1
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
test byte [ebx + 0x168], 4
mov byte [esp + 0x3f], 0
je 0x583c81
mov byte [esp + 0x3f], 1
mov eax, dword [ebx + 0x60]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], edi
jbe 0x585082
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea ebx, [ebx]
cmp edi, dword [ebx + 0x64]
jb 0x583cb1
cmp edi, dword [ebx + 0xb8]
jb 0x585072
mov edx, dword [ebx + 0x1c4]
mov eax, edi
shl eax, 4
add edx, eax
cmp word [edx + 2], 0
mov dword [esp + 0xc8], eax
je 0x585066
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 + 0x50], 0
je 0x583cfa
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x114], eax
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], edi
mov dword [esp + 0x118], esi
movsx eax, word [edx + 2]
add eax, ecx
cmp ecx, 1
mov dword [esp + 0x18], eax
jne 0x583d9d
mov dword [esp + 0xdc], eax
mov eax, dword [ebx + 0x164]
test ah, 0x20
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xd4], 0
mov dword [esp + 0xdc], ecx
je 0x583d70
mov eax, esi
inc eax
mov dword [esp + 0xe0], 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 + 0xe0]
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 + 0x78]
test ecx, ecx
je 0x583daa
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x17c]
cmp eax, dword [ecx + 8]
jle 0x583dc7
mov edx, dword [ebx + 0x60]
mov ecx, dword [esp + 0x30]
dec edx
cmp ecx, edx
jne 0x583dc7
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xbc]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x38], edi
je 0x583dfa
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [esp + 0x180]
jne 0x583df4
mov edx, dword [esp + 0x30]
cmp dword [ebx + 0x40], edx
jne 0x583df4
mov edi, 1
jmp 0x583df6
xor edi, edi
mov dword [esp + 0x38], edi
test edi, edi
mov dword [esp + 0x28], 0
je 0x583e0e
mov cl, byte [esp + 0x3f]
test cl, cl
je 0x583e4b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x180]
push eax
push ecx
push ebx
xor esi, esi
call fcn.0057fa10
test eax, eax
je 0x583e2c
mov esi, 1
test esi, esi
mov dword [esp + 0x28], esi
je 0x583e47
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x583e47
mov dword [esp + 0x28], 2
mov eax, dword [esp + 0x18]
test byte [ebx + 0x160], 4
je 0x583e5a
mov dword [esp + 0x28], edi
jmp 0x583eb2
test edi, edi
je 0x583eb2
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x583e97
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
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x180]
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 0x583eec
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 0x583ef5
mov eax, dword [esi + 0x10]
jmp 0x583f0b
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0xc4]
jne 0x583f0b
mov eax, dword [esp + 0xcc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, dword [esp + 0xd0]
jne 0x583f29
mov edi, dword [esp + 0xc0]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
test byte [esi + 0xe], 4
je 0x583f42
mov ecx, dword [esi + 0x14]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x50]
cmp eax, 1
jne 0x584105
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
and edi, 3
add edx, eax
cmp di, 1
push edx
jne 0x583f99
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x188]
mov ebx, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x1c8]
mov edx, dword [esp + 0x38]
shl ecx, 4
mov ecx, dword [eax + ecx + 4]
add ecx, ebx
add ecx, edx
jmp 0x583fa4
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x38]
sub ecx, 2
push ecx
mov ebx, ebp
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.00580c40
mov eax, dword [esp + 0x38]
test eax, eax
je 0x583feb
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 + 0x1c], eax
mov eax, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x184]
mov eax, dword [edx + 0x1c8]
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x5840c6
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 0x5840c6
mov edx, dword [esp + 0x180]
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 + 0x7c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
jne 0x584072
mov eax, dword [eax + 4]
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
lea eax, [eax + edx + 2]
mov dword [esp + 0x7c], eax
dec ecx
jmp 0x58407e
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x7c], edx
sub ecx, dword [eax + 4]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x7c]
inc edi
push eax
dec edx
push ebx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], 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 + 0x38]
test eax, eax
je 0x584f17
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc edi
dec edx
inc ecx
dec eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
jmp 0x584f17
cmp eax, 2
jne 0x584284
mov eax, dword [esp + 0x38]
test eax, eax
je 0x584718
test byte [esp + 0x2c], 3
jne 0x58416b
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x184]
add edx, eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [edi + 0x1c8]
shl ecx, 4
sub eax, dword [edx + ecx + 4]
sub eax, dword [esp + 0x38]
sub eax, 2
push eax
mov eax, esi
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00580c40
jmp 0x5841a0
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx + 2]
push edx
mov eax, esi
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00580c40
mov edi, dword [esp + 0x184]
mov eax, dword [edi + 0x1c8]
test eax, eax
je 0x584f17
mov ecx, dword [esp + 0x30]
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov edx, dword [eax + ecx + 0x14]
test edx, edx
je 0x584f17
mov ebx, dword [esp + 0x10]
mov edi, dword [edi + 0x1c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ebx
inc eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
dec edx
add ecx, edi
mov dword [esp + 0x18], eax
mov edi, eax
inc ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
sub edi, dword [ecx + 4]
dec edi
inc edx
dec eax
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x180]
lea eax, [eax + eax*2]
mov dword [esp + 0x154], edi
mov dword [esp + 0x158], edx
dec ebx
shl eax, 6
mov dword [esp + 0x160], ebx
mov ecx, dword [ecx + 0x14]
shr eax, 2
lea edx, [esp + 0x154]
lea edi, [ecx + eax*4]
push edx
push edi
call sym.vidcap60.exe__SpinnerInst_Move_8
mov eax, dword [esi + 0x24]
push eax
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]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc edi
dec edx
inc ecx
dec eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
jmp 0x584f17
cmp eax, 3
jne 0x584552
mov ecx, dword [ebx + 0x1c4]
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + ecx + 0xc]
add eax, 0x10
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0xfc], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x100], edx
mov edx, dword [eax + 0x10]
push 8
push ebp
mov dword [esp + 0x100], edi
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], edx
call dword [sym.imp.GDI32.dll_SetTextAlign]
test edi, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
lea ecx, [eax + ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jne 0x584323
test edi, 2
je 0x584347
mov edx, dword [esp + 0x38]
test edx, edx
je 0x584323
test edi, 1
jne 0x584347
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ebx, ebp
lea ecx, [esp + 0x60]
mov eax, esi
call fcn.00580c40
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x184]
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x2c], 0
je 0x584380
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
dec ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x64]
inc eax
dec edx
inc ecx
mov dword [esp + 0x64], ecx
mov ecx, 1
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x24], 2
mov edi, 1
jle 0x584391
mov edi, 2
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x100]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x34]
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x5c]
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x64]
dec eax
dec ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
lea ecx, [edx + eax + 2]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0x8c], ecx
lea ecx, [eax + edx + 1]
mov edx, dword [esp + 0x94]
mov eax, dword [ebx + 0x190]
dec edx
mov dword [esp + 0x94], edx
mov edx, dword [ebx + 0x194]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
dec ecx
push ebx
mov dword [esp + 0xa4], ecx
call fcn.0057f1a0
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x1bc]
test al, 0x40
je 0x584483
test al, al
jns 0x584483
mov ecx, dword [esp + 0x30]
cmp dword [ebx + 0x178], ecx
jne 0x584483
mov edx, dword [esp + 0x180]
cmp dword [esp + 0x50], edx
mov dword [esp + 0x28], 1
je 0x58448b
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0xf8]
test al, 2
je 0x584500
mov ecx, dword [ebx + 0x178]
lea eax, [esp + 0x11c]
push eax
push ecx
push ebx
call fcn.0057f210
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x11c]
push edx
push eax
push ebx
call fcn.0057f2b0
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x100]
mov eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x190]
mov ebx, dword [ebx + 0x194]
sub eax, 4
cmp ecx, eax
mov dword [esp + 0x11c], eax
jl 0x584510
cmp ecx, edx
jge 0x584510
cmp ebx, dword [esp + 0x120]
jl 0x584510
cmp ebx, dword [esp + 0x128]
jge 0x584510
mov eax, dword [esp + 0x28]
test eax, eax
je 0x584510
mov dword [esp + 0x2c], 2
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x108]
push 0
dec edi
add ecx, edi
push ecx
mov ecx, dword [esp + 0x104]
add edx, edi
push edx
push ebp
push eax
push ecx
call fcn.004108e0
mov edx, dword [esp + 0x2c]
push 0xf
push edx
lea eax, [esp + 0x94]
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x584f17
cmp eax, 4
jne 0x584718
push 0xa
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x2c]
and edi, 3
cmp di, 1
jne 0x5845a2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
add edx, ecx
push edx
mov edx, dword [esp + 0x188]
mov edx, dword [edx + 0x1c8]
lea eax, [eax + eax*2]
shl eax, 4
mov eax, dword [edx + eax + 4]
add eax, ebx
add eax, ecx
push eax
jmp 0x5845b7
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
mov ebx, ebp
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.00580c40
mov eax, dword [esp + 0x38]
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x5845f8
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 + 0x184]
mov eax, dword [eax + 0x1c8]
test eax, eax
je 0x5846df
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 0x5846df
mov edx, dword [esp + 0x180]
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 + 0xac], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
jne 0x584681
mov eax, dword [eax + 4]
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea eax, [eax + edx + 2]
mov dword [esp + 0xac], eax
dec ecx
jmp 0x584690
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0xac], edx
sub ecx, dword [eax + 4]
mov edi, dword [esp + 0xb0]
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0xac]
inc edi
push eax
dec edx
push ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xc0], 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 + 0x38]
test eax, eax
je 0x584f17
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc edi
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
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 0x584f17
mov ecx, dword [esp + 0x2c]
test ch, 1
je 0x584ad3
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 + 0x40], ecx
jne 0x584748
mov edx, dword [esp + 0x20]
lea eax, [ecx + edx]
jmp 0x584755
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x20]
add edx, ecx
lea eax, [edx + eax + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
add edx, ecx
push edx
push eax
mov eax, esi
lea ecx, [esp + 0x48]
mov ebx, ebp
call fcn.00580c40
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], ecx
je 0x5847cc
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
dec eax
inc edx
dec ebx
inc ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], 2
mov ebx, 1
jle 0x5847dd
mov ebx, 2
cmp di, 3
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
jne 0x584825
mov edi, dword [esi + 0x1c]
mov ecx, edx
sub ecx, eax
sar ecx, 1
sar edi, 1
test ecx, ecx
jle 0x584834
test edi, edi
jle 0x584834
sub ecx, edi
sub ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x68]
sub ecx, 3
add eax, ecx
add edi, ecx
mov dword [esp + 0x68], edi
jmp 0x584834
test di, di
jne 0x584834
mov edi, dword [esi + 0x1c]
mov eax, edx
sub eax, edi
sub eax, 4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
lea eax, [eax + ecx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
sub eax, ebx
dec edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
dec edx
lea eax, [edi + eax + 1]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x44], eax
lea eax, [edx + ecx + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
sub ecx, ebx
mov dword [esp + 0x68], eax
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x74]
mov ecx, dword [esi + 0x24]
dec edi
mov dword [esp + 0x6c], eax
mov ax, word [esi + 0xe]
dec edx
test al, 8
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x28], ecx
je 0x584969
mov ecx, dword [esp + 0x184]
mov eax, dword [ecx + 0x1bc]
test al, 0x40
je 0x5848e8
test al, al
jns 0x5848e8
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x178], edx
jne 0x5848e8
mov eax, dword [ecx + 0x194]
mov edx, dword [ecx + 0x190]
push eax
push edx
push ecx
call fcn.0057f1a0
cmp eax, dword [esp + 0x180]
jne 0x5848e8
mov edx, 1
jmp 0x5848ea
xor edx, edx
mov ax, word [esi + 0xe]
test ah, 0xf0
jne 0x58495d
test ah, 4
movzx ecx, word [esi + 0x26]
je 0x584902
mov dword [esp + 0x28], ecx
jmp 0x584918
test edx, edx
je 0x58490c
mov dword [esp + 0x28], ecx
jmp 0x584918
movzx edx, word [esi + 0x24]
cmp edx, ecx
mov dword [esp + 0x28], edx
jne 0x584928
mov dword [esp + 0x2c], 2
mov dword [esp + 0x50], 1
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x40]
add edx, ebx
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
add edx, ebx
add edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x68]
add edx, ebx
add edx, ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
add edx, ebx
add edx, ecx
mov dword [esp + 0x74], edx
jmp 0x584969
test edx, edx
je 0x584969
mov dword [esp + 0x2c], 2
dec ebx
test al, 8
je 0x584a93
test ah, 0xf0
jne 0x584a93
test ah, 4
je 0x584a93
push 0x2711
call sym.vidcap60.exe__SfGetUIBrush_4
mov edi, eax
test edi, edi
je 0x584a93
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xe4]
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 + 0xf8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push 0xf00021
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x48]
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 + 0xf4]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x54]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe4]
lea edx, [esp + 0xe4]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
inc eax
dec edx
inc ecx
dec edi
push 0xf
mov dword [esp + 0x168], eax
mov dword [esp + 0x170], edx
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x174], edi
call sym.vidcap60.exe__SfGetUIBrush_4
push eax
lea edx, [esp + 0x168]
push edx
push ebp
call dword [sym.imp.USER32.dll_FrameRect]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea ecx, [eax + ebx]
mov eax, dword [esp + 0x50]
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 + 0x70]
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x584f17
test ch, 0x20
je 0x584d21
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa0], edx
push edi
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x20]
push edx
push ebp
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
call fcn.005807e0
mov ecx, dword [esp + 0x2c]
test ch, 0x10
je 0x584c62
xor eax, eax
mov ax, word [esi + 0xe]
test al, 8
je 0x584c62
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 + 0x54], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xa4]
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 + 0x13c], eax
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x17c]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 4]
add edx, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x140], 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 + 0x138], edx
je 0x584c2b
test al, al
jns 0x584c2b
mov ecx, dword [esp + 0x30]
cmp dword [ebx + 0x178], ecx
jne 0x584c2b
mov edx, dword [ebx + 0x194]
mov eax, dword [ebx + 0x190]
push edx
push eax
push ebx
call fcn.0057f1a0
cmp eax, dword [esp + 0x180]
jne 0x584c2b
test edi, 0x100
jne 0x584c2b
mov eax, dword [esp + 0x28]
or edi, 0x200
test eax, eax
je 0x584c1d
xor edi, 0x400
jmp 0x584c2b
mov eax, dword [esp + 0x54]
test eax, eax
je 0x584c2b
or edi, 0x404
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
lea ecx, [esp + 0x138]
push ecx
push ebp
mov ebx, eax
call fcn.005812b0
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x584f17
mov edi, dword [esp + 0x38]
test edi, edi
je 0x584c72
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x28]
push esi
push edx
mov edx, dword [esp + 0x3c]
movzx eax, cx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0xb0]
push eax
push ebp
call fcn.00581030
test edi, edi
je 0x584ca0
mov dword [esp + 0x20], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x584f17
cmp dword [esi], 0
je 0x584f17
mov al, byte [esp + 0x2c]
and al, 3
cmp al, 1
jne 0x584f17
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x584cfa
mov edx, dword [esp + 0x9c]
mov ecx, dword [esi + 0x1c]
lea eax, [edx + ecx + 2]
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0xa0], eax
push eax
lea ecx, [esp + 0xa4]
jmp 0x584f0e
mov ecx, dword [esp + 0x9c]
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [ecx + eax + 3]
push edx
mov dword [esp + 0xa0], eax
push eax
lea ecx, [esp + 0xa4]
jmp 0x584f0e
mov eax, ecx
and eax, 3
cmp ax, 3
jne 0x584d55
push 0xe
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x584f0a
cmp ax, 1
jne 0x584eec
xor edi, edi
test ch, 0x10
je 0x584d88
test byte [esi + 0xe], 8
je 0x584d88
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10c]
sub edi, edx
shl edi, 1
add eax, edi
mov dword [esp + 0x10c], eax
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 ecx, [edi + edx]
lea edx, [ecx + eax + 2]
push edx
mov eax, esi
lea ecx, [esp + 0x18]
mov ebx, ebp
call fcn.00580c40
test edi, edi
je 0x584f17
mov ax, word [esi + 0xe]
and ax, 0xf000
xor ecx, ecx
cmp ax, 0x2000
sete cl
xor ebx, ebx
test ax, ax
sete bl
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x20]
sar eax, 2
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x10]
add eax, ecx
lea eax, [eax + edx + 2]
mov edx, dword [esp + 0x17c]
mov dword [esp + 0x144], eax
mov eax, dword [edx + 4]
add eax, ebx
mov dword [esp + 0x148], eax
lea eax, [edi + edi*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx + 2]
mov eax, dword [esp + 0x17c]
mov ecx, dword [eax + 0xc]
movzx eax, word [esi + 0xe]
sub ecx, ebx
mov edi, eax
shr eax, 0xb
and edi, 0x700
mov dword [esp + 0x150], ecx
mov ecx, dword [esp + 0x184]
or edi, eax
mov eax, dword [ecx + 0x1bc]
test al, 0x40
mov dword [esp + 0x14c], edx
je 0x584eb4
test al, al
jns 0x584eb4
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x178], edx
jne 0x584eb4
mov eax, dword [ecx + 0x194]
mov edx, dword [ecx + 0x190]
push eax
push edx
push ecx
call fcn.0057f1a0
cmp eax, dword [esp + 0x180]
jne 0x584eb4
test edi, 0x100
jne 0x584eb4
or edi, 0x200
test ebx, ebx
je 0x584ea6
xor edi, 0x400
jmp 0x584eb4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x584eb4
or edi, 0x404
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
mov dword [esp + 0x54], eax
push edi
lea eax, [esp + 0x148]
push eax
push ebp
call fcn.005812b0
mov ecx, dword [esp + 0x54]
push ecx
push ebp
call ebx
jmp 0x584f17
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.00580c40
test byte [esi + 0xe], 4
je 0x584f32
mov edx, dword [esp + 0x184]
mov eax, dword [edx + 0x10c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x584f87
mov ecx, dword [esp + 0x184]
test byte [ecx + 0x160], 4
je 0x584f5b
lea edx, [esp + 0x10c]
push edx
push ebp
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x584f87
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 + 0x184]
mov edx, dword [esi + 0x1bc]
mov ecx, eax
and ecx, 0x10
and eax, 0x20
test dl, 8
je 0x584fda
test dl, 0x10
je 0x584fda
test dl, 0x20
je 0x584fda
mov eax, dword [esi + 0x1b8]
cmp eax, dword [esi + 0x5c]
jne 0x584fca
mov ecx, dword [esp + 0x180]
inc ecx
cmp eax, ecx
jne 0x584fca
xor ecx, ecx
jmp 0x584fe2
mov edx, dword [esp + 0x180]
xor ecx, ecx
cmp eax, edx
sete cl
xor eax, eax
test ecx, ecx
jne 0x584fe2
test eax, eax
je 0x585032
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 0x584fff
lea ecx, [edi - 1]
push 2
lea ebx, [esp + 0x130]
lea edi, [esp + 0xf0]
mov esi, ebp
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0x130], edx
mov dword [esp + 0x134], ecx
call fcn.00580ee0
mov edx, dword [esp + 0x184]
mov eax, dword [edx + 0x1c4]
mov ecx, dword [esp + 0xc8]
movsx edx, word [ecx + eax + 2]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x184]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0x17c]
cmp ecx, dword [eax + 8]
jge 0x585082
mov eax, dword [ebx + 0x60]
inc edi
cmp edi, eax
mov dword [esp + 0x30], edi
jb 0x583ca0
mov ecx, dword [esp + 0xc0]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0xcc]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x17c]
mov eax, dword [eax + 8]
cmp dword [esp + 0x18], eax
jge 0x5850cc
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0
push 0
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 0x10